Pitch differs depending on browser / computer (v2)
JTriggerFish opened this issue · comments
This example seems to play a half tone higher on a old Mac ( with Mojave and Chrome ) than on a recent PC ( with Windows 10 and Chrome too ).
I haven't checked with a tuner which one is correct - if any.
Clock.bpm = 82
Theory.root = 'b2'
Theory.mode = 'ionian'
verb = Bus2('spaceverb')
//Synth defs
{
pad = PolySynth('stringPad', {gain:0.1})
pad.connect(verb, .7).connect()
sprinkle = Monosynth('pluck', {antialias:true, attack: audio => audio.Clock.ms(2), decay: 1/24, Q: 0.9, cutoff:0.1})
sprinkle.connect( verb, .6 ).connect()
pluck = Monosynth('pluck', {gain:.2})
pluck.connect( verb, .35 ).connect()
bass = Monosynth('bassPad', {decay:2})
bass.connect(verb, 0.35).connect()
drums= Drums()
drums.connect(verb, 0.1).connect()
}
drums.tidal('[kd kd ~~~~~~]*2')
sprinkle.octave = 3
sprinkle.note.seq([0,2,4,6,7,7,6,4,2,0], 1/36)
sprinkle.gain.fade(0.2, 0, 2)
pad.chord.seq([[0,2,4,6]], 3)
pluck.cutoff.fade(0,1,4)
pluck.note.seq([0,2,4,6,7,6,4,2],1/16)
bass.note.seq([14],1)
moved too gibber.audio.lib