The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

danbernier (22) [Avatar] Offline
#1
In the vibrato violin listing, towards the end, the example chucks 0 to env.keyOff. That should be 1, not 0, right?

It sounds like 0 => env.keyOff is the equivalent of 1 => env.keyOn, which is interesting, and maybe a bit weird.
VanessaVan (6) [Avatar] Offline
#2
Re: Listing 6.5, typo on envelope.keyOn parameter
Yeah, that confused me as well!
perry.cook (29) [Avatar] Offline
#3
Re: Listing 6.5, typo on envelope.keyOn parameter
Yea, that's a bug in the listing. The arguments to
noteOn and keyOn have some different interpretations
depending on instrument or UG. For some, it's the
"velocity" of the action, so 1 => noteOn might mean
"do it quickly" while 0.01 => noteOn might mean "do
it slowly" Same for Off. But the general usage is to
chuck a 1 or so to the on/off function. Will fix in the
code example.