intergalatico Posted February 2, 2019 Share Posted February 2, 2019 Hello there, I would like to use my e-drum (Alesis DM8) Ride cymbal (2 zones) to have two sounds in the same area. Like: When I strike the Ride Tip with a velocity greater than 90 the midi note would change and I would get a Bow sound. Something like: If C3 Velocity >= 90 then Midi Note = C#3 with the same velocity. I would be really grateful if someone could help me with it! Thank you! Cheers! Quote Link to comment Share on other sites More sharing options...
Atlas007 Posted February 4, 2019 Share Posted February 4, 2019 Have you considered using a Transformer object in the Environment? Quote Link to comment Share on other sites More sharing options...
intergalatico Posted February 4, 2019 Author Share Posted February 4, 2019 Hey Atlas007, thanks for the answer but the Transformer is for Midi that is already recorded. I want to use it live while I am playing. Quote Link to comment Share on other sites More sharing options...
intergalatico Posted February 4, 2019 Author Share Posted February 4, 2019 I got it! Use with moderation! //************************************************ // Alesis DM8 Velocity Note Switching (Ride Cymbal) //************************************************ function HandleMIDI(event) { event.send(); // If Ride Tip is played harder then velocity 90 if(event instanceof NoteOn && event.pitch == 51 && event.velocity >= 90) { var note = new NoteOn; //create a NoteOn object note.pitch = 25; //Ride Shaft note.send(); //send note on } // If Ride Tip is played harder then velocity 110 if(event instanceof NoteOn && event.pitch == 51 && event.velocity >= 115) { var note = new NoteOn; //create a NoteOn object note.pitch = 79; //crash 2 note.send(); //send note on } event.trace(); event.send(); } Cheers! Quote Link to comment Share on other sites More sharing options...
fuzzfilth Posted February 4, 2019 Share Posted February 4, 2019 Kudos to you for showing the effort. Meanwhile, Atlas is right, a Transformer between Physical In and SequencerIn would have achieved just that, with the difference that the C#3s will be recorded, whereas the Scripter solution is post recording, and thus all cymbal velocities would be recorded as C3 and only changed on their way out. No audible difference, mind you, but could be confusing when trying to edit those C#3 notes later... Quote Link to comment Share on other sites More sharing options...
Dewdman42 Posted February 4, 2019 Share Posted February 4, 2019 intergalactico, the script you posted would duplicate the notes...' Try this: //************************************************ // Alesis DM8 Velocity Note Switching (Ride Cymbal) //************************************************ function HandleMIDI(event) { // If Ride Tip is played harder then velocity 90 if(event instanceof NoteOn && event.pitch == 51 && event.velocity >= 90) { event.pitch = 25; //Ride Shaft } // If Ride Tip is played harder then velocity 110 if(event instanceof NoteOn && event.pitch == 51 && event.velocity >= 115) { event.pitch = 79; //crash 2 } event.trace(); event.send(); } What Atlas suggested about a transformer object in the environment could also easily work for live playing. One advantage of the environment is that it will effect the change BEFORE hitting the sequencer in order to record the changed note numbers into regions as you record. The Scripter script only makes the change after the sequencer at the last instant before going to the instrument. Quote Link to comment Share on other sites More sharing options...
intergalatico Posted February 4, 2019 Author Share Posted February 4, 2019 Ok, but please help me to get the transformer... I can apply the transformer only when a midi region is available on the session. Quote Link to comment Share on other sites More sharing options...
Dewdman42 Posted February 4, 2019 Share Posted February 4, 2019 no you are thinking about the transformer menu command, in the environment you can add a transformer object and you can cable that in front of or after the sequencer. Quote Link to comment Share on other sites More sharing options...
intergalatico Posted February 4, 2019 Author Share Posted February 4, 2019 I'm sorry... I don't know what do you mean with "environment". Can you please show me? Quote Link to comment Share on other sites More sharing options...
Dewdman42 Posted February 4, 2019 Share Posted February 4, 2019 Quote Link to comment Share on other sites More sharing options...
intergalatico Posted February 4, 2019 Author Share Posted February 4, 2019 Holly s#!+!!! Thank you, thank you and thank you! I will play around a bit and try to figure out! Quote Link to comment Share on other sites More sharing options...
intergalatico Posted February 4, 2019 Author Share Posted February 4, 2019 Got it! Love you, Dewdman42! Thank you, everybody! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.