Guest User

Untitled

a guest
Sep 19th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. winmm_channel = winChannel;
  2. midiNoteNum = winParam1;
  3. winmm_velocity = winParam2;
  4.  
  5. winmm_noteNumber = (unsigned int)changeToScale(midiNoteNum);
  6. curVirTranspose = getCurTranspose();
  7.  
  8. winmm_noteNumber = winmm_noteNumber + curVirTranspose;
  9.  
  10. winmm_midiPitchBend = getPitchBend(winmm_noteNumber);
  11. winmm_midiNoteNumber = get12NoteNumber(winmm_noteNumber);
  12.  
  13. if(winmm_noteNumber % 2 != 0){
  14.     fluid_synth_noteon(winmm_synth, 1, winmm_midiNoteNumber, winmm_velocity);
  15.     fluid_synth_pitch_bend(winmm_synth, 1, winmm_midiPitchBend);
  16. } else {
  17.     fluid_synth_noteon(winmm_synth, 0, winmm_midiNoteNumber, winmm_velocity);
  18.     fluid_synth_pitch_bend(winmm_synth, 0, winmm_midiPitchBend);
  19. }
Add Comment
Please, Sign In to add comment