IR Loader Doesn'twork & Some Errors....
-
why using:
const var convolution = Synth.getAudioSampleProcessor("Convolution Reverb");convolution.setFile("{PROJECT_FOLDER}Impulse2.wav");
?just put the conv reverb module and associated GUI. after compiling it will first retain the IR put in the audiofile folder.
universal.Standard. works will all updates.
-
@staiff Because I have lots of IR samples and users will pick what they want.
It's already been discussed on this thread: https://forum.hise.audio/topic/598/loading-ir-sample-folders/8 -
You are correct and this will be fixed soon after I finished the restructuring of the settings dialogue & menu bar.
-
Hmm, works here:
const var a = Synth.getAudioSampleProcessor("Convolution Reverb"); inline function onButton1Control(component, value) { if(value) { a.setFile("{PROJECT_FOLDER}IR1.wav"); } else { a.setFile("{PROJECT_FOLDER}IR2.wav"); } }; Content.getComponent("Button1").setControlCallback(onButton1Control);
Are you trying this in the compiled plugin or in HISE?
-
I have 18 buttons for 18 different IR samples;
-
There are 18 inline functions for each button. Each inline function has lots of lines. When dedicated button is active; it's loading dedicated IR sample, showing dedicated image and hiding other images.
-
I'm using a same Radio Group ID for 18 buttons. I'm not using "else" for each inline function. Only If.
-
I'm using "Button1.setControlCallback(onButton1Control);" But you are using "Content.getComponent("Button1").setControlCallback(onButton1Control);"
This is my code;
const var convolution = Synth.getAudioSampleProcessor("Convolution Reverb"); /** These are buttons for activating IR samples **/ const var Walkie_Talkie = Content.getComponent("Walkie_Talkie"); const var Megaphone3 = Content.getComponent("Megaphone3"); const var Megaphone2 = Content.getComponent("Megaphone2"); const var Megaphone1 = Content.getComponent("Megaphone1"); const var Walkie_Talkie_in_Room = Content.getComponent("Walkie_Talkie_in_Room"); const var Answering_Machine = Content.getComponent("Answering_Machine"); const var Old_Computer = Content.getComponent("Old_Computer"); const var Headphone_Leak = Content.getComponent("Headphone_Leak"); const var JukeBox = Content.getComponent("JukeBox"); const var Android_Phone = Content.getComponent("Android_Phone"); const var Vintage_Phone = Content.getComponent("Vintage_Phone"); const var Radio_Close = Content.getComponent("Radio_Close"); const var Radio_in_Room = Content.getComponent("Radio_in_Room"); const var Toy = Content.getComponent("Toy"); const var Car_Radio = Content.getComponent("Car_Radio"); const var Vintage_Turn_Table_in_Room = Content.getComponent("Vintage_Turn_Table_in_Room"); const var Vintage_Turn_Table = Content.getComponent("Vintage_Turn_Table"); const var Marshall_Mini = Content.getComponent("Marshall_Mini"); /** These are images that shows IR samples **/ const var imgWalkie_Talkie = Content.getComponent("imgWalkie_Talkie"); const var imgMegaphone3 = Content.getComponent("imgMegaphone3"); const var imgMegaphone2 = Content.getComponent("imgMegaphone2"); const var imgMegaphone1 = Content.getComponent("imgMegaphone1"); const var imgWalkie_Talkie_in_Room = Content.getComponent("imgWalkie_Talkie_in_Room"); const var imgAnswering_Machine = Content.getComponent("imgAnswering_Machine"); const var imgOld_Computer = Content.getComponent("imgOld_Computer"); const var imgHeadphone_Leak = Content.getComponent("imgHeadphone_Leak"); const var imgJukeBox = Content.getComponent("imgJukeBox"); const var imgAndroid_Phone = Content.getComponent("imgAndroid_Phone"); const var imgVintage_Phone = Content.getComponent("imgVintage_Phone"); const var imgRadio_Close = Content.getComponent("imgRadio_Close"); const var imgRadio_in_Room = Content.getComponent("imgRadio_in_Room"); const var imgToy = Content.getComponent("imgToy"); const var imgCar_Radio = Content.getComponent("imgCar_Radio"); const var imgVintage_Turn_Table_in_Room = Content.getComponent("imgVintage_Turn_Table_in_Room"); const var imgVintage_Turn_Table = Content.getComponent("imgVintage_Turn_Table"); const var imgMarshall_Mini = Content.getComponent("imgMarshall_Mini"); /** These are extra images for IR samples **/ const var Txt_Walkie_Talkie = Content.getComponent("Txt_Walkie_Talkie"); const var Txt_Megaphone3 = Content.getComponent("Txt_Megaphone3"); const var Txt_Megaphone2 = Content.getComponent("Txt_Megaphone2"); const var Txt_Megaphone1 = Content.getComponent("Txt_Megaphone1"); const var Txt_Walkie_Talkie_in_Room = Content.getComponent("Txt_Walkie_Talkie_in_Room"); const var Txt_Answering_Machine = Content.getComponent("Txt_Answering_Machine"); const var Txt_Old_Computer = Content.getComponent("Txt_Old_Computer"); const var Txt_Headphone_Leak = Content.getComponent("Txt_Headphone_Leak"); const var Txt_JukeBox = Content.getComponent("Txt_JukeBox"); const var Txt_Android_Phone = Content.getComponent("Txt_Android_Phone"); const var Txt_Vintage_Phone = Content.getComponent("Txt_Vintage_Phone"); const var Txt_Radio_Close = Content.getComponent("Txt_Radio_Close"); const var Txt_Radio_in_Room = Content.getComponent("Txt_Radio_in_Room"); const var Txt_Toy = Content.getComponent("Txt_Toy"); const var Txt_Car_Radio = Content.getComponent("Txt_Car_Radio"); const var Txt_Vintage_Turn_Table_in_Room = Content.getComponent("Txt_Vintage_Turn_Table_in_Room"); const var Txt_Vintage_Turn_Table = Content.getComponent("Txt_Vintage_Turn_Table"); const var Txt_Marshall_Mini = Content.getComponent("Txt_Marshall_Mini"); inline function onMarshall_MiniControl(number, value) { if(value == 1) { convolution.setFile("{PROJECT_FOLDER}Marshal Mini_dc.wav"); imgAnswering_Machine.showControl(false); imgWalkie_Talkie.showControl(false); imgWalkie_Talkie_in_Room.showControl(false); imgMegaphone3.showControl(false); imgMegaphone2.showControl(false); imgMegaphone1.showControl(false); imgOld_Computer.showControl(false); imgHeadphone_Leak.showControl(false); imgJukeBox.showControl(false); imgAndroid_Phone.showControl(false); imgVintage_Phone.showControl(false); imgRadio_Close.showControl(false); imgRadio_in_Room.showControl(false); imgToy.showControl(false); imgCar_Radio.showControl(false); imgVintage_Turn_Table_in_Room.showControl(false); imgVintage_Turn_Table.showControl(false); imgMarshall_Mini.showControl(true); Txt_Answering_Machine.showControl(false); Txt_Walkie_Talkie.showControl(false); Txt_Walkie_Talkie_in_Room.showControl(false); Txt_Megaphone3.showControl(false); Txt_Megaphone2.showControl(false); Txt_Megaphone1.showControl(false); Txt_Old_Computer.showControl(false); Txt_Headphone_Leak.showControl(false); Txt_JukeBox.showControl(false); Txt_Android_Phone.showControl(false); Txt_Vintage_Phone.showControl(false); Txt_Radio_Close.showControl(false); Txt_Radio_in_Room.showControl(false); Txt_Toy.showControl(false); Txt_Car_Radio.showControl(false); Txt_Vintage_Turn_Table_in_Room.showControl(false); Txt_Vintage_Turn_Table.showControl(false); Txt_Marshall_Mini.showControl(true); } } Marshall_Mini.setControlCallback(onMarshall_MiniControl); inline function onCar_RadioControl(number, value) { if(value == 1) { convolution.setFile("{PROJECT_FOLDER}CarRadio_dc.wav"); imgAnswering_Machine.showControl(false); imgWalkie_Talkie.showControl(false); imgWalkie_Talkie_in_Room.showControl(false); imgMegaphone3.showControl(false); imgMegaphone2.showControl(false); imgMegaphone1.showControl(false); imgOld_Computer.showControl(false); imgHeadphone_Leak.showControl(false); imgJukeBox.showControl(false); imgAndroid_Phone.showControl(false); imgVintage_Phone.showControl(false); imgRadio_Close.showControl(false); imgRadio_in_Room.showControl(false); imgToy.showControl(false); imgCar_Radio.showControl(true); imgVintage_Turn_Table_in_Room.showControl(false); imgVintage_Turn_Table.showControl(false); imgMarshall_Mini.showControl(false); Txt_Answering_Machine.showControl(false); Txt_Walkie_Talkie.showControl(false); Txt_Walkie_Talkie_in_Room.showControl(false); Txt_Megaphone3.showControl(false); Txt_Megaphone2.showControl(false); Txt_Megaphone1.showControl(false); Txt_Old_Computer.showControl(false); Txt_Headphone_Leak.showControl(false); Txt_JukeBox.showControl(false); Txt_Android_Phone.showControl(false); Txt_Vintage_Phone.showControl(false); Txt_Radio_Close.showControl(false); Txt_Radio_in_Room.showControl(false); Txt_Toy.showControl(false); Txt_Car_Radio.showControl(true); Txt_Vintage_Turn_Table_in_Room.showControl(false); Txt_Vintage_Turn_Table.showControl(false); Txt_Marshall_Mini.showControl(false); } } Car_Radio.setControlCallback(onCar_RadioControl); inline function onVintage_Turn_Table_in_RoomControl(number, value) { if(value == 1) { convolution.setFile("{PROJECT_FOLDER}Grampophone-Roomy_dc.wav"); imgAnswering_Machine.showControl(false); imgWalkie_Talkie.showControl(false); imgWalkie_Talkie_in_Room.showControl(false); imgMegaphone3.showControl(false); imgMegaphone2.showControl(false); imgMegaphone1.showControl(false); imgOld_Computer.showControl(false); imgHeadphone_Leak.showControl(false); imgJukeBox.showControl(false); imgAndroid_Phone.showControl(false); imgVintage_Phone.showControl(false); imgRadio_Close.showControl(false); imgRadio_in_Room.showControl(false); imgToy.showControl(false); imgCar_Radio.showControl(false); imgVintage_Turn_Table_in_Room.showControl(true); imgVintage_Turn_Table.showControl(false); imgMarshall_Mini.showControl(false); Txt_Answering_Machine.showControl(false); Txt_Walkie_Talkie.showControl(false); Txt_Walkie_Talkie_in_Room.showControl(false); Txt_Megaphone3.showControl(false); Txt_Megaphone2.showControl(false); Txt_Megaphone1.showControl(false); Txt_Old_Computer.showControl(false); Txt_Headphone_Leak.showControl(false); Txt_JukeBox.showControl(false); Txt_Android_Phone.showControl(false); Txt_Vintage_Phone.showControl(false); Txt_Radio_Close.showControl(false); Txt_Radio_in_Room.showControl(false); Txt_Toy.showControl(false); Txt_Car_Radio.showControl(false); Txt_Vintage_Turn_Table_in_Room.showControl(true); Txt_Vintage_Turn_Table.showControl(false); Txt_Marshall_Mini.showControl(false); } } Vintage_Turn_Table_in_Room.setControlCallback(onVintage_Turn_Table_in_RoomControl); inline function onVintage_Turn_TableControl(number, value) { if(value == 1) { convolution.setFile("{PROJECT_FOLDER}Grampophone-No room_dc.wav"); imgAnswering_Machine.showControl(false); imgWalkie_Talkie.showControl(false); imgWalkie_Talkie_in_Room.showControl(false); imgMegaphone3.showControl(false); imgMegaphone2.showControl(false); imgMegaphone1.showControl(false); imgOld_Computer.showControl(false); imgHeadphone_Leak.showControl(false); imgJukeBox.showControl(false); imgAndroid_Phone.showControl(false); imgVintage_Phone.showControl(false); imgRadio_Close.showControl(false); imgRadio_in_Room.showControl(false); imgToy.showControl(false); imgCar_Radio.showControl(false); imgVintage_Turn_Table_in_Room.showControl(false); imgVintage_Turn_Table.showControl(true); imgMarshall_Mini.showControl(false); Txt_Answering_Machine.showControl(false); Txt_Walkie_Talkie.showControl(false); Txt_Walkie_Talkie_in_Room.showControl(false); Txt_Megaphone3.showControl(false); Txt_Megaphone2.showControl(false); Txt_Megaphone1.showControl(false); Txt_Old_Computer.showControl(false); Txt_Headphone_Leak.showControl(false); Txt_JukeBox.showControl(false); Txt_Android_Phone.showControl(false); Txt_Vintage_Phone.showControl(false); Txt_Radio_Close.showControl(false); Txt_Radio_in_Room.showControl(false); Txt_Toy.showControl(false); Txt_Car_Radio.showControl(false); Txt_Vintage_Turn_Table_in_Room.showControl(false); Txt_Vintage_Turn_Table.showControl(true); Txt_Marshall_Mini.showControl(false); } } Vintage_Turn_Table.setControlCallback(onVintage_Turn_TableControl); inline function onToyControl(number, value) { if(value == 1) { convolution.setFile("{PROJECT_FOLDER}Toy - Apple1_dc.wav"); imgAnswering_Machine.showControl(false); imgWalkie_Talkie.showControl(false); imgWalkie_Talkie_in_Room.showControl(false); imgMegaphone3.showControl(false); imgMegaphone2.showControl(false); imgMegaphone1.showControl(false); imgOld_Computer.showControl(false); imgHeadphone_Leak.showControl(false); imgJukeBox.showControl(false); imgAndroid_Phone.showControl(false); imgVintage_Phone.showControl(false); imgRadio_Close.showControl(false); imgRadio_in_Room.showControl(false); imgToy.showControl(true); imgCar_Radio.showControl(false); imgVintage_Turn_Table_in_Room.showControl(false); imgVintage_Turn_Table.showControl(false); imgMarshall_Mini.showControl(false); Txt_Answering_Machine.showControl(false); Txt_Walkie_Talkie.showControl(false); Txt_Walkie_Talkie_in_Room.showControl(false); Txt_Megaphone3.showControl(false); Txt_Megaphone2.showControl(false); Txt_Megaphone1.showControl(false); Txt_Old_Computer.showControl(false); Txt_Headphone_Leak.showControl(false); Txt_JukeBox.showControl(false); Txt_Android_Phone.showControl(false); Txt_Vintage_Phone.showControl(false); Txt_Radio_Close.showControl(false); Txt_Radio_in_Room.showControl(false); Txt_Toy.showControl(true); Txt_Car_Radio.showControl(false); Txt_Vintage_Turn_Table_in_Room.showControl(false); Txt_Vintage_Turn_Table.showControl(false); Txt_Marshall_Mini.showControl(false); } } Toy.setControlCallback(onToyControl); inline function onRadio_in_RoomControl(number, value) { if(value == 1) { convolution.setFile("{PROJECT_FOLDER}Radio - Tokyo-Roomy_dc.wav"); imgAnswering_Machine.showControl(false); imgWalkie_Talkie.showControl(false); imgWalkie_Talkie_in_Room.showControl(false); imgMegaphone3.showControl(false); imgMegaphone2.showControl(false); imgMegaphone1.showControl(false); imgOld_Computer.showControl(false); imgHeadphone_Leak.showControl(false); imgJukeBox.showControl(false); imgAndroid_Phone.showControl(false); imgVintage_Phone.showControl(false); imgRadio_Close.showControl(false); imgRadio_in_Room.showControl(true); imgToy.showControl(false); imgCar_Radio.showControl(false); imgVintage_Turn_Table_in_Room.showControl(false); imgVintage_Turn_Table.showControl(false); imgMarshall_Mini.showControl(false); Txt_Answering_Machine.showControl(false); Txt_Walkie_Talkie.showControl(false); Txt_Walkie_Talkie_in_Room.showControl(false); Txt_Megaphone3.showControl(false); Txt_Megaphone2.showControl(false); Txt_Megaphone1.showControl(false); Txt_Old_Computer.showControl(false); Txt_Headphone_Leak.showControl(false); Txt_JukeBox.showControl(false); Txt_Android_Phone.showControl(false); Txt_Vintage_Phone.showControl(false); Txt_Radio_Close.showControl(false); Txt_Radio_in_Room.showControl(true); Txt_Toy.showControl(false); Txt_Car_Radio.showControl(false); Txt_Vintage_Turn_Table_in_Room.showControl(false); Txt_Vintage_Turn_Table.showControl(false); Txt_Marshall_Mini.showControl(false); } } Radio_in_Room.setControlCallback(onRadio_in_RoomControl); inline function onRadio_CloseControl(number, value) { if(value == 1) { convolution.setFile("{PROJECT_FOLDER}Radio - Supersound-Close_dc.wav"); imgAnswering_Machine.showControl(false); imgWalkie_Talkie.showControl(false); imgWalkie_Talkie_in_Room.showControl(false); imgMegaphone3.showControl(false); imgMegaphone2.showControl(false); imgMegaphone1.showControl(false); imgOld_Computer.showControl(false); imgHeadphone_Leak.showControl(false); imgJukeBox.showControl(false); imgAndroid_Phone.showControl(false); imgVintage_Phone.showControl(false); imgRadio_Close.showControl(true); imgRadio_in_Room.showControl(false); imgToy.showControl(false); imgCar_Radio.showControl(false); imgVintage_Turn_Table_in_Room.showControl(false); imgVintage_Turn_Table.showControl(false); imgMarshall_Mini.showControl(false); Txt_Answering_Machine.showControl(false); Txt_Walkie_Talkie.showControl(false); Txt_Walkie_Talkie_in_Room.showControl(false); Txt_Megaphone3.showControl(false); Txt_Megaphone2.showControl(false); Txt_Megaphone1.showControl(false); Txt_Old_Computer.showControl(false); Txt_Headphone_Leak.showControl(false); Txt_JukeBox.showControl(false); Txt_Android_Phone.showControl(false); Txt_Vintage_Phone.showControl(false); Txt_Radio_Close.showControl(true); Txt_Radio_in_Room.showControl(false); Txt_Toy.showControl(false); Txt_Car_Radio.showControl(false); Txt_Vintage_Turn_Table_in_Room.showControl(false); Txt_Vintage_Turn_Table.showControl(false); Txt_Marshall_Mini.showControl(false); } } Radio_Close.setControlCallback(onRadio_CloseControl); inline function onVintage_PhoneControl(number, value) { if(value == 1) { convolution.setFile("{PROJECT_FOLDER}Phone - Old Vintage_dc.wav"); imgAnswering_Machine.showControl(false); imgWalkie_Talkie.showControl(false); imgWalkie_Talkie_in_Room.showControl(false); imgMegaphone3.showControl(false); imgMegaphone2.showControl(false); imgMegaphone1.showControl(false); imgOld_Computer.showControl(false); imgHeadphone_Leak.showControl(false); imgJukeBox.showControl(false); imgAndroid_Phone.showControl(false); imgVintage_Phone.showControl(true); imgRadio_Close.showControl(false); imgRadio_in_Room.showControl(false); imgToy.showControl(false); imgCar_Radio.showControl(false); imgVintage_Turn_Table_in_Room.showControl(false); imgVintage_Turn_Table.showControl(false); imgMarshall_Mini.showControl(false); Txt_Answering_Machine.showControl(false); Txt_Walkie_Talkie.showControl(false); Txt_Walkie_Talkie_in_Room.showControl(false); Txt_Megaphone3.showControl(false); Txt_Megaphone2.showControl(false); Txt_Megaphone1.showControl(false); Txt_Old_Computer.showControl(false); Txt_Headphone_Leak.showControl(false); Txt_JukeBox.showControl(false); Txt_Android_Phone.showControl(false); Txt_Vintage_Phone.showControl(true); Txt_Radio_Close.showControl(false); Txt_Radio_in_Room.showControl(false); Txt_Toy.showControl(false); Txt_Car_Radio.showControl(false); Txt_Vintage_Turn_Table_in_Room.showControl(false); Txt_Vintage_Turn_Table.showControl(false); Txt_Marshall_Mini.showControl(false); } } Vintage_Phone.setControlCallback(onVintage_PhoneControl); inline function onAndroid_PhoneControl(number, value) { if(value == 1) { convolution.setFile("{PROJECT_FOLDER}Phone - Nokia6600_dc.wav"); imgAnswering_Machine.showControl(false); imgWalkie_Talkie.showControl(false); imgWalkie_Talkie_in_Room.showControl(false); imgMegaphone3.showControl(false); imgMegaphone2.showControl(false); imgMegaphone1.showControl(false); imgOld_Computer.showControl(false); imgHeadphone_Leak.showControl(false); imgJukeBox.showControl(false); imgAndroid_Phone.showControl(true); imgVintage_Phone.showControl(false); imgRadio_Close.showControl(false); imgRadio_in_Room.showControl(false); imgToy.showControl(false); imgCar_Radio.showControl(false); imgVintage_Turn_Table_in_Room.showControl(false); imgVintage_Turn_Table.showControl(false); imgMarshall_Mini.showControl(false); Txt_Answering_Machine.showControl(false); Txt_Walkie_Talkie.showControl(false); Txt_Walkie_Talkie_in_Room.showControl(false); Txt_Megaphone3.showControl(false); Txt_Megaphone2.showControl(false); Txt_Megaphone1.showControl(false); Txt_Old_Computer.showControl(false); Txt_Headphone_Leak.showControl(false); Txt_JukeBox.showControl(false); Txt_Android_Phone.showControl(true); Txt_Vintage_Phone.showControl(false); Txt_Radio_Close.showControl(false); Txt_Radio_in_Room.showControl(false); Txt_Toy.showControl(false); Txt_Car_Radio.showControl(false); Txt_Vintage_Turn_Table_in_Room.showControl(false); Txt_Vintage_Turn_Table.showControl(false); Txt_Marshall_Mini.showControl(false); } } Android_Phone.setControlCallback(onAndroid_PhoneControl); inline function onJukeBoxControl(number, value) { if(value == 1) { convolution.setFile("{PROJECT_FOLDER}Misc- Jukebox_dc.wav"); imgAnswering_Machine.showControl(false); imgWalkie_Talkie.showControl(false); imgWalkie_Talkie_in_Room.showControl(false); imgMegaphone3.showControl(false); imgMegaphone2.showControl(false); imgMegaphone1.showControl(false); imgOld_Computer.showControl(false); imgHeadphone_Leak.showControl(false); imgJukeBox.showControl(true); imgAndroid_Phone.showControl(false); imgVintage_Phone.showControl(false); imgRadio_Close.showControl(false); imgRadio_in_Room.showControl(false); imgToy.showControl(false); imgCar_Radio.showControl(false); imgVintage_Turn_Table_in_Room.showControl(false); imgVintage_Turn_Table.showControl(false); imgMarshall_Mini.showControl(false); Txt_Answering_Machine.showControl(false); Txt_Walkie_Talkie.showControl(false); Txt_Walkie_Talkie_in_Room.showControl(false); Txt_Megaphone3.showControl(false); Txt_Megaphone2.showControl(false); Txt_Megaphone1.showControl(false); Txt_Old_Computer.showControl(false); Txt_Headphone_Leak.showControl(false); Txt_JukeBox.showControl(true); Txt_Android_Phone.showControl(false); Txt_Vintage_Phone.showControl(false); Txt_Radio_Close.showControl(false); Txt_Radio_in_Room.showControl(false); Txt_Toy.showControl(false); Txt_Car_Radio.showControl(false); Txt_Vintage_Turn_Table_in_Room.showControl(false); Txt_Vintage_Turn_Table.showControl(false); Txt_Marshall_Mini.showControl(false); } } JukeBox.setControlCallback(onJukeBoxControl); inline function onHeadphone_LeakControl(number, value) { if(value == 1) { convolution.setFile("{PROJECT_FOLDER}Headphone - Sony_dc.wav"); imgAnswering_Machine.showControl(false); imgWalkie_Talkie.showControl(false); imgWalkie_Talkie_in_Room.showControl(false); imgMegaphone3.showControl(false); imgMegaphone2.showControl(false); imgMegaphone1.showControl(false); imgOld_Computer.showControl(false); imgHeadphone_Leak.showControl(true); imgJukeBox.showControl(false); imgAndroid_Phone.showControl(false); imgVintage_Phone.showControl(false); imgRadio_Close.showControl(false); imgRadio_in_Room.showControl(false); imgToy.showControl(false); imgCar_Radio.showControl(false); imgVintage_Turn_Table_in_Room.showControl(false); imgVintage_Turn_Table.showControl(false); imgMarshall_Mini.showControl(false); Txt_Answering_Machine.showControl(false); Txt_Walkie_Talkie.showControl(false); Txt_Walkie_Talkie_in_Room.showControl(false); Txt_Megaphone3.showControl(false); Txt_Megaphone2.showControl(false); Txt_Megaphone1.showControl(false); Txt_Old_Computer.showControl(false); Txt_Headphone_Leak.showControl(true); Txt_JukeBox.showControl(false); Txt_Android_Phone.showControl(false); Txt_Vintage_Phone.showControl(false); Txt_Radio_Close.showControl(false); Txt_Radio_in_Room.showControl(false); Txt_Toy.showControl(false); Txt_Car_Radio.showControl(false); Txt_Vintage_Turn_Table_in_Room.showControl(false); Txt_Vintage_Turn_Table.showControl(false); Txt_Marshall_Mini.showControl(false); } } Headphone_Leak.setControlCallback(onHeadphone_LeakControl); inline function onOld_ComputerControl(number, value) { if(value == 1) { convolution.setFile("{PROJECT_FOLDER}Computer - MacSE_dc.wav"); imgAnswering_Machine.showControl(false); imgWalkie_Talkie.showControl(false); imgWalkie_Talkie_in_Room.showControl(false); imgMegaphone3.showControl(false); imgMegaphone2.showControl(false); imgMegaphone1.showControl(false); imgOld_Computer.showControl(true); imgHeadphone_Leak.showControl(false); imgJukeBox.showControl(false); imgAndroid_Phone.showControl(false); imgVintage_Phone.showControl(false); imgRadio_Close.showControl(false); imgRadio_in_Room.showControl(false); imgToy.showControl(false); imgCar_Radio.showControl(false); imgVintage_Turn_Table_in_Room.showControl(false); imgVintage_Turn_Table.showControl(false); imgMarshall_Mini.showControl(false); Txt_Answering_Machine.showControl(false); Txt_Walkie_Talkie.showControl(false); Txt_Walkie_Talkie_in_Room.showControl(false); Txt_Megaphone3.showControl(false); Txt_Megaphone2.showControl(false); Txt_Megaphone1.showControl(false); Txt_Old_Computer.showControl(true); Txt_Headphone_Leak.showControl(false); Txt_JukeBox.showControl(false); Txt_Android_Phone.showControl(false); Txt_Vintage_Phone.showControl(false); Txt_Radio_Close.showControl(false); Txt_Radio_in_Room.showControl(false); Txt_Toy.showControl(false); Txt_Car_Radio.showControl(false); Txt_Vintage_Turn_Table_in_Room.showControl(false); Txt_Vintage_Turn_Table.showControl(false); Txt_Marshall_Mini.showControl(false); } } Old_Computer.setControlCallback(onOld_ComputerControl); inline function onAnswering_MachineControl(number, value) { if(value == 1) { convolution.setFile("{PROJECT_FOLDER}Answering Machine 1_dc.wav"); imgAnswering_Machine.showControl(true); imgWalkie_Talkie.showControl(false); imgWalkie_Talkie_in_Room.showControl(false); imgMegaphone3.showControl(false); imgMegaphone2.showControl(false); imgMegaphone1.showControl(false); imgOld_Computer.showControl(false); imgHeadphone_Leak.showControl(false); imgJukeBox.showControl(false); imgAndroid_Phone.showControl(false); imgVintage_Phone.showControl(false); imgRadio_Close.showControl(false); imgRadio_in_Room.showControl(false); imgToy.showControl(false); imgCar_Radio.showControl(false); imgVintage_Turn_Table_in_Room.showControl(false); imgVintage_Turn_Table.showControl(false); imgMarshall_Mini.showControl(false); Txt_Answering_Machine.showControl(true); Txt_Walkie_Talkie.showControl(false); Txt_Walkie_Talkie_in_Room.showControl(false); Txt_Megaphone3.showControl(false); Txt_Megaphone2.showControl(false); Txt_Megaphone1.showControl(false); Txt_Old_Computer.showControl(false); Txt_Headphone_Leak.showControl(false); Txt_JukeBox.showControl(false); Txt_Android_Phone.showControl(false); Txt_Vintage_Phone.showControl(false); Txt_Radio_Close.showControl(false); Txt_Radio_in_Room.showControl(false); Txt_Toy.showControl(false); Txt_Car_Radio.showControl(false); Txt_Vintage_Turn_Table_in_Room.showControl(false); Txt_Vintage_Turn_Table.showControl(false); Txt_Marshall_Mini.showControl(false); } } Answering_Machine.setControlCallback(onAnswering_MachineControl); inline function onWalkie_Talkie_in_RoomControl(number, value) { if(value == 1) { convolution.setFile("{PROJECT_FOLDER}Walkie Talkie - 1-Room_dc.wav"); imgAnswering_Machine.showControl(false); imgWalkie_Talkie.showControl(false); imgWalkie_Talkie_in_Room.showControl(true); imgMegaphone3.showControl(false); imgMegaphone2.showControl(false); imgMegaphone1.showControl(false); imgOld_Computer.showControl(false); imgHeadphone_Leak.showControl(false); imgJukeBox.showControl(false); imgAndroid_Phone.showControl(false); imgVintage_Phone.showControl(false); imgRadio_Close.showControl(false); imgRadio_in_Room.showControl(false); imgToy.showControl(false); imgCar_Radio.showControl(false); imgVintage_Turn_Table_in_Room.showControl(false); imgVintage_Turn_Table.showControl(false); imgMarshall_Mini.showControl(false); Txt_Answering_Machine.showControl(false); Txt_Walkie_Talkie.showControl(false); Txt_Walkie_Talkie_in_Room.showControl(true); Txt_Megaphone3.showControl(false); Txt_Megaphone2.showControl(false); Txt_Megaphone1.showControl(false); Txt_Old_Computer.showControl(false); Txt_Headphone_Leak.showControl(false); Txt_JukeBox.showControl(false); Txt_Android_Phone.showControl(false); Txt_Vintage_Phone.showControl(false); Txt_Radio_Close.showControl(false); Txt_Radio_in_Room.showControl(false); Txt_Toy.showControl(false); Txt_Car_Radio.showControl(false); Txt_Vintage_Turn_Table_in_Room.showControl(false); Txt_Vintage_Turn_Table.showControl(false); Txt_Marshall_Mini.showControl(false); } } Walkie_Talkie_in_Room.setControlCallback(onWalkie_Talkie_in_RoomControl); inline function onWalkie_TalkieControl(number, value) { if(value == 1) { convolution.setFile("{PROJECT_FOLDER}Walkie Talkie - 1_dc.wav"); imgAnswering_Machine.showControl(false); imgWalkie_Talkie.showControl(true); imgWalkie_Talkie_in_Room.showControl(false); imgMegaphone3.showControl(false); imgMegaphone2.showControl(false); imgMegaphone1.showControl(false); imgOld_Computer.showControl(false); imgHeadphone_Leak.showControl(false); imgJukeBox.showControl(false); imgAndroid_Phone.showControl(false); imgVintage_Phone.showControl(false); imgRadio_Close.showControl(false); imgRadio_in_Room.showControl(false); imgToy.showControl(false); imgCar_Radio.showControl(false); imgVintage_Turn_Table_in_Room.showControl(false); imgVintage_Turn_Table.showControl(false); imgMarshall_Mini.showControl(false); Txt_Answering_Machine.showControl(false); Txt_Walkie_Talkie.showControl(true); Txt_Walkie_Talkie_in_Room.showControl(false); Txt_Megaphone3.showControl(false); Txt_Megaphone2.showControl(false); Txt_Megaphone1.showControl(false); Txt_Old_Computer.showControl(false); Txt_Headphone_Leak.showControl(false); Txt_JukeBox.showControl(false); Txt_Android_Phone.showControl(false); Txt_Vintage_Phone.showControl(false); Txt_Radio_Close.showControl(false); Txt_Radio_in_Room.showControl(false); Txt_Toy.showControl(false); Txt_Car_Radio.showControl(false); Txt_Vintage_Turn_Table_in_Room.showControl(false); Txt_Vintage_Turn_Table.showControl(false); Txt_Marshall_Mini.showControl(false); } } Walkie_Talkie.setControlCallback(onWalkie_TalkieControl); inline function onMegaphone3Control(number, value) { if(value == 1) { convolution.setFile("{PROJECT_FOLDER}Megaphone - 3_dc.wav"); imgAnswering_Machine.showControl(false); imgWalkie_Talkie.showControl(false); imgWalkie_Talkie_in_Room.showControl(false); imgMegaphone3.showControl(true); imgMegaphone2.showControl(false); imgMegaphone1.showControl(false); imgOld_Computer.showControl(false); imgHeadphone_Leak.showControl(false); imgJukeBox.showControl(false); imgAndroid_Phone.showControl(false); imgVintage_Phone.showControl(false); imgRadio_Close.showControl(false); imgRadio_in_Room.showControl(false); imgToy.showControl(false); imgCar_Radio.showControl(false); imgVintage_Turn_Table_in_Room.showControl(false); imgVintage_Turn_Table.showControl(false); imgMarshall_Mini.showControl(false); Txt_Answering_Machine.showControl(false); Txt_Walkie_Talkie.showControl(false); Txt_Walkie_Talkie_in_Room.showControl(false); Txt_Megaphone3.showControl(true); Txt_Megaphone2.showControl(false); Txt_Megaphone1.showControl(false); Txt_Old_Computer.showControl(false); Txt_Headphone_Leak.showControl(false); Txt_JukeBox.showControl(false); Txt_Android_Phone.showControl(false); Txt_Vintage_Phone.showControl(false); Txt_Radio_Close.showControl(false); Txt_Radio_in_Room.showControl(false); Txt_Toy.showControl(false); Txt_Car_Radio.showControl(false); Txt_Vintage_Turn_Table_in_Room.showControl(false); Txt_Vintage_Turn_Table.showControl(false); Txt_Marshall_Mini.showControl(false); } } Megaphone3.setControlCallback(onMegaphone3Control); inline function onMegaphone2Control(number, value) { if(value == 1) { convolution.setFile("{PROJECT_FOLDER}Megaphone - 2_dc.wav"); imgAnswering_Machine.showControl(false); imgWalkie_Talkie.showControl(false); imgWalkie_Talkie_in_Room.showControl(false); imgMegaphone3.showControl(false); imgMegaphone2.showControl(true); imgMegaphone1.showControl(false); imgOld_Computer.showControl(false); imgHeadphone_Leak.showControl(false); imgJukeBox.showControl(false); imgAndroid_Phone.showControl(false); imgVintage_Phone.showControl(false); imgRadio_Close.showControl(false); imgRadio_in_Room.showControl(false); imgToy.showControl(false); imgCar_Radio.showControl(false); imgVintage_Turn_Table_in_Room.showControl(false); imgVintage_Turn_Table.showControl(false); imgMarshall_Mini.showControl(false); Txt_Answering_Machine.showControl(false); Txt_Walkie_Talkie.showControl(false); Txt_Walkie_Talkie_in_Room.showControl(false); Txt_Megaphone3.showControl(false); Txt_Megaphone2.showControl(true); Txt_Megaphone1.showControl(false); Txt_Old_Computer.showControl(false); Txt_Headphone_Leak.showControl(false); Txt_JukeBox.showControl(false); Txt_Android_Phone.showControl(false); Txt_Vintage_Phone.showControl(false); Txt_Radio_Close.showControl(false); Txt_Radio_in_Room.showControl(false); Txt_Toy.showControl(false); Txt_Car_Radio.showControl(false); Txt_Vintage_Turn_Table_in_Room.showControl(false); Txt_Vintage_Turn_Table.showControl(false); Txt_Marshall_Mini.showControl(false); } } Megaphone2.setControlCallback(onMegaphone2Control); inline function onMegaphone1Control(number, value) { if(value == 1) { convolution.setFile("{PROJECT_FOLDER}Megaphone - 1_dc.wav"); imgAnswering_Machine.showControl(false); imgWalkie_Talkie.showControl(false); imgWalkie_Talkie_in_Room.showControl(false); imgMegaphone3.showControl(false); imgMegaphone2.showControl(false); imgMegaphone1.showControl(true); imgOld_Computer.showControl(false); imgHeadphone_Leak.showControl(false); imgJukeBox.showControl(false); imgAndroid_Phone.showControl(false); imgVintage_Phone.showControl(false); imgRadio_Close.showControl(false); imgRadio_in_Room.showControl(false); imgToy.showControl(false); imgCar_Radio.showControl(false); imgVintage_Turn_Table_in_Room.showControl(false); imgVintage_Turn_Table.showControl(false); imgMarshall_Mini.showControl(false); Txt_Answering_Machine.showControl(false); Txt_Walkie_Talkie.showControl(false); Txt_Walkie_Talkie_in_Room.showControl(false); Txt_Megaphone3.showControl(false); Txt_Megaphone2.showControl(false); Txt_Megaphone1.showControl(true); Txt_Old_Computer.showControl(false); Txt_Headphone_Leak.showControl(false); Txt_JukeBox.showControl(false); Txt_Android_Phone.showControl(false); Txt_Vintage_Phone.showControl(false); Txt_Radio_Close.showControl(false); Txt_Radio_in_Room.showControl(false); Txt_Toy.showControl(false); Txt_Car_Radio.showControl(false); Txt_Vintage_Turn_Table_in_Room.showControl(false); Txt_Vintage_Turn_Table.showControl(false); Txt_Marshall_Mini.showControl(false); } } Megaphone1.setControlCallback(onMegaphone1Control);
-
-
@orange That's a lot of code! can you getting working for just 1 IR? Then try 2 and then 18
-
@d-healey Yes one IR unit and it loads samples relatively when dedicated button is active. it works on previous Hise versions but doesn't work last one. Besides AU plugin validation fails in Logic Pro X 10.4. It gives;
-------------------------------------------------- PUBLISHED PARAMETER INFO: # # # 34 Global Scope Parameters: WARNING: retrievedValue = 1.000000 (was 1.000000), Parameter did not retain maximum value when set WARNING: retrievedValue = nan (was nan), Parameter did not retain default value when set ERROR: Parameter values are different since last set - probable cause: a Meta Param Flag is NOT set on a parameter that will change values of other parameters. * * FAIL -------------------------------------------------- AU VALIDATION FAILED: CORRECT THE ERRORS ABOVE.
-
You can definitely use 90% less code to do the same thing using some organised data structure. Try putting the components into an array instead of using a dedicated variable and use one inline function as callback for all buttons.
But what doesn't work? Is there a compilation error, something in the console, the IR is changing, but the waveform isn't updating?
-
- It works on older Hise versions and exports / works as vst. But old Hise exported AU version gives that validation error. (above)
- On the latest Hise version, when I press the button, it loads (updates waveform) IR sample but there is no sound and after 4 - 5 seconds it crashes/closes Hise automatically.
I've sent the project link to you....
-
sorry for that, but agree with David.
Less is more...
sure your intension is good.
but just let (as i wrote before) the user choose IR by external files (more flexibility) than as you would do.lot of work (too many) and just 1 chance, but THE chance to break the code and make the compiling impossible.
the powerfull of your plugin is maybe to choose IR that the user want, not only YOUR IR...and just to finish you spent a lot of time to solve this instead of creating.... Imaginating you're not the slave of your plugin ... maybe, in fact, it is yours, but not reverese. and just let users some liberty.
with your system user can just choose what you decide, not what he decides. and it makes the diffrence (not for you, sig ! )
like we say in French: we say that, we say nothing. and of course you can not be agree with me.
but i feel you can spend more time creative, than absolutly trying to stuck users in this IR files limited choosing sytem.
but once and again, it's my feeling, and you can absolutly not be agrre with me ...
Best VST are made by musicians for musicians. I want to expalin you that sometimes you have a great idea (like this one) but just try with a simplier function (in this case the onboard Christoph system) and let the customers tell you if it's good or not. if "or not" so continue in your way. if you want to create something like altiverb, just let me explain that i hate it. I prefer something with more liberty...
my goal is to create music, as i feel, not depending of the creator decision.
I know all this is very pretentious. but we Frenchmen sum it up, in truth.
I know that blocking an idea is frustrating. and David and Christoph can certify it by my posts.
but when we begin to code we forget an essential function: to create, to compose.
I speak by experience. I stopped coding, I compose again. -
@staiff I'm not making a plugin that uses common IR sample styles (Hall, room, plate..etc). I'm just building a speacial IR loader stuff that it simulates special (hard or impossible to find their IR samples) speakers. Like 1950 grampophone, vintage phone...etc... You think just like on your usage. But there is not a one way. So everyone's purpose is different, user's will be different too....
-
ooooooooh like "speakerphone" (don't remember the developer name)
i unsterstand now.
i remember i had the same problem with rackafx new system. stuked by the C++ possibility.
but why don't you create an "open" system with external IR that you can put with your plugin. (?)
in this case you could update your IR library independently of your plugin if no update needed ?
and in this case create 1 - plugin section (with updates) and 1 IR file section (with updates)
you kill two birds with one stone, as they say in French
wow, not sure for the translate after reading it ;)
-
I've took a look at the project you sent me. The problem was that the metadata of your impulse responses contained weird values (the loop range was 12303425723456345 samples), so it created a ridiculously high impulse response and crashed :)
I've added a protection to the metadata parser that prevents this kind of malfunction.
Apart from that everything is working fine.
-
Thank you so much Christoph, I appreciate it...
But did you export the project as AU unit? Logic Pro X gives this error when startup (validation error); :(-------------------------------------------------- PUBLISHED PARAMETER INFO: # # # 34 Global Scope Parameters: WARNING: retrievedValue = 1.000000 (was 1.000000), Parameter did not retain maximum value when set WARNING: retrievedValue = nan (was nan), Parameter did not retain default value when set ERROR: Parameter values are different since last set - probable cause: a Meta Param Flag is NOT set on a parameter that will change values of other parameters. * * FAIL -------------------------------------------------- AU VALIDATION FAILED: CORRECT THE ERRORS ABOVE. --------------------------------------------------
NOTE: I've removed all metadata tags from IR samples....
-
Hello @Christoph-Hart
I saw this thread on Juce forum about AU validation fail, maybe it helps to solve this issue. Please help :(
How are you declaring your parameters? Are you using
AudioProcessorParameter
? You seem to have stripped some output from auval too, but essentially auval is trying to set values on one your parameters but the value being returned doesn’t match what was set and in the last case it returnednan !
-
I need to debug your project in order to find out, there is some weird empty string to double casting going on somewhere.
-
@christoph-hart Thank you,
If you deleted my project, you can still download from the same link. -
Nope still have it but I don‘t have time today. I‘ll try to look at it tomorrow.
-
Alright, I've fixed the AU validation for this project. The reason was that you were using buttons in a radio group as plugin parameters and Logic expects all parameters that change other parameters to be marked as Meta Parameter or the au validation fails - so in this case the error message was actually right, which happens in like 1% of all cases.
From now on, all buttons that are in a radio group are automatically propagated as meta parameters, however I've added a
isMetaParameter
which must be manually set for all parameters that change other controls in their control callback. -
@christoph-hart Wow it works like a charm :)
I've disabled "isPluginParameter" in all of the radiogroups buttons. I don't know what "isMetaParameter" does but it's disabled too.But AU plugin passed the validation. You are genious Christoph :)
Am I making something bad with disabling "isMetaParameter"?