I'm learning some MIDI basics. The following line of code prints "holas" each time I press that MIDI note
MIDIFunc.noteOn({|vel, num| if(num == 64){"holas".postln;}.value;});
I beleived that this next line of code would sound a SinOsc each time I pressed the adequate MIDI note, but its not the case...
MIDIFunc.noteOn({|vel, num| if(num == 71){SinOsc.ar(440, 0, 0.5)}.play;});
Maybe I could use some help in order to understand why this is not workng and what I could try instead of using that code