@d-healey Ahhhhh such a simple solution, thank you!
Best posts made by ATWAW
-
RE: Triggering of Different RR Groups, With Different Amounts of Samples, Without Triggering Dead Notes
Latest posts made by ATWAW
-
RE: How to Export Plugin as AU format
@aaronventure Okay thank you for your help, looks like I'm gonna learn how to create a virtual installation of Mac lol
-
RE: How to Export Plugin as AU format
@d-healey Oh shoot, I didn't even know I could build VST2, do I also need a license for VST3?
-
How to Export Plugin as AU format
Hello HISE forum I am struggling to find a solution online for this, but is there a way to build my plugin in the Audio Unit format on a Windows 11 device? If so, how would I go about doing that, is there an SDK that I need in order to be able to successfully export the project?
I have successfully built my project in both VST and DLL formats but I don't see an option for AU when I hit the export as instrument (VSTi, AUI) button.
Any help would be greatly appreciated!
-
RE: Sustain Pedal Question
@d-healey
Wow thanks for the fast reply! It looks like the date on the executable is 03/20/2024, which does not seem to be the latest version, so that may be my issue with the snippet importing...My onController callback code seems to be working for triggering the different samplers, I am going to have to mess with the button features to get it to be able to trigger the sustain pedal. What function would I use to turn on a sustain pedal via a button on the interface, like I know how to reference the button but how do I actually get it to trigger the sustain pedal (without having to press the actual pedal in real life...)
-
RE: Sustain Pedal Question
I might not be on the latest version, I compiled four or so weeks ago, where would I find what version of HISE I am on?
It would be awesome to have the button be assignable for those few who don't have a sustain pedal, or just want to map sustain to something else. How would I go about getting the separate sampler scripts to communicate with one another to recognize the buttons state, you mentioned using "setAttribute" but I don't think I understand the context to use it under. Are buttons midi assignable by default in HISE, or does that require additional scripting?
-
RE: Sustain Pedal Question
@d-healey
Okay good to know,I was using the button on the interface to communicate the state of the sustain pedal on the UI itself, as well as a way to tell my other script modules to not play if the sustain is engaged. As I am explaing this I am realizing I could just use the "isSustainPedalDown" to accomplish the same thing :man_facepalming: am actively updating the code for both samplers as we speak.
(Notes with pedal, Sampler2) onNoteOn
function onNoteOn() { if (Synth.isSustainPedalDown() == 0) { Message.ignoreEvent(true); } }
How would I use the setAttribute or processor ID to communicate between modules? Would it be as simple as defining the "const var (insert ID)" within the onInit of the sampler I want to communicate with?
Here is the video of what happens when I try to import the HISE snippet into a new project
video of error message -
RE: Sustain Pedal Question
I believe I got it working! Thank you, I still seem to have not been able to get the HISE snippet to work to see your exact code but thanks to the information you gave in your responses I was able to get it working. I am worried the way that I have done it is inefficient, so I am open to any suggestions for improvements.
I ended up using a global variable for my button on the interface, and I was wondering if that was the optimal way to do this or if there is a better way...
(interface) onInit
Content.makeFrontInterface(600, 600); Globals.Button1 = Content.getComponent("Button1");
(interface) onController
function onController() { if(Synth.isSustainPedalDown() == true) { Button1.setValue(1); } else { Button1.setValue(0); } }
(Piano Notes Without Pedal, Sampler1) onNoteOn
function onNoteOn() { if (Button1.getValue() == 1) { Message.ignoreEvent(true); } }
(Piano Notes With Pedal, Sampler2) onNoteOn
function onNoteOn() { if (Button1.getValue() == 0) { Message.ignoreEvent(true); } }
-
RE: Sustain Pedal Question
@d-healey This seems like a better method than using midi muters, but I'm having trouble importing the HISE snippet, with HISE telling me its not a valid snippet or container file, so I've just tried to recreate what you are describing.
I have created a button on my NotesWithoutPedal Sampler interface, and I have specified my variables in the onInit like so...
Content.makeFrontInterface(600, 600); const var NotesWithoutPedal = Synth.getSampler("NotesWithoutPedal"); const var Button1 = Content.getComponent("Button1");
Then in my onNoteOn callback of the sampler I have these lines
function onNoteOn() { if (Synth.isSustainPedalDown() == true) Button1.setValue(1); Message.ignoreEvent(true); }
But now my sampler is not triggering any samples regardless of whether any button is pressed.
-
Sustain Pedal Question
Hello all! I have been working on a piano sampler instrument in HISE for a few weeks, (am still new to HISE) and am having issues triggering different samplers based on whether or not the sustain pedal is being pressed. I have loaded up a MidiMuter on both tracks and then I am trying to disable each sampler from triggering notes based on whether or not the sustain pedal is being pressed down.
I have two samplers loaded up, one of them for notes with pedal, and the other for notes without pedal. in the function onController of the notes without pedal I have this function...
function onController() { if (Synth.isSustainPedalDown()) MidiMuter1.setBypassed(0); }
It seems to compile okay but it does not seem to do anything when the led is pressed. if anyone could have some minor insight into where I'm going wrong that would be greatly appreciated, thank you in advance!