Hi,大家好~I am from China,Is a composer,I am very happy to create with you all

Best posts made by CatABC
-
RE: The world of HISE
-
RE: How to draw the rename secondary confirmation window in PresetBrowserDialog?
@d-healey I am using Content.createLocalLookAndFeel();
Tried your method and it worked, thank you very much -
When I clicking this button, a bug occurs
This prevents me from using this feature properly -
RE: Directly fade in and out samples from two samplers on one MIDI note?
@d-healey OK, thank you for your guidance. I think I can achieve the effect I want in the near future.
-
RE: Setting the alpha of a color individually?
@d-healey Ahaha,god,It's so simple
Feeling mine so stupid。,Thanks very much David, you solved my problem again. -
RE: User-defined background?
@Oli-Ullmann Yes, thank you very much for your help.
-
RE: How to set the text color of Combobox?
@mmprod They are universal, you just use LAF
-
RE: How to set the text color of Combobox?
@Oli-Ullmann cool,I don't know what I did wrong, my
g.setColour();
didn't work, but I deleted all the code and rewrote it according to the code snippet you gave, and it worked. I want to give you a hug to express my endless gratitude.
Latest posts made by CatABC
-
RE: Has anyone used CSS to create a Combobox UI?
@HISEnberg Ahaha, I was blind, thanks for helping me find it
-
Has anyone used CSS to create a Combobox UI?
I think it's very convenient to use CSS to create UI, but I don't know where to start with ComboBox. I looked through the HISE documentation but couldn't find any examples. Has anyone done it before? Could you give me an example? I would be very grateful.
-
How to filter and display SampleMaps in ComboBox
Dear forum buddies, I have many SampleMaps and some Comboboxes. I will use the ComboBox to select and load the specified SampleMap. I hope to display only certain specific SampleMaps in ComboBox1 instead of all SampleMaps. How can I do it? ?
-
RE: Make the Gain knob smooth the gain?
@d-healey @Chazrox
I'm back. After many days, I reviewed the code again today and finally succeeded!
We need a loop!
I would also like to thank all my friends who provided me with help and various solutions! I love you allfunction onNoteOn() { local n = Message.getNoteNumber(); local v = Message.getVelocity(); if (n >= knbLoKey.getValue() && n <= knbHiKey.getValue()) lastKs = n; if (Synth.isArtificialEventActive(eventIds.getValue(lastNote))) Synth.addVolumeFade(eventIds.getValue(lastNote), knbFadeTime.getValue(), -100); for (i = 48; i < 127; i++) { local e = eventIds.getValue(i); if (e != -1) Synth.noteOffByEventId(e); if (n == knbKs.getValue() && Synth.isKeyDown(i)) { ADSR.setAttribute(ADSR.Attack, fadeIn.getValue()); lastKs = n; eventIds.setValue(i, Synth.playNote(i, v)); return Message.ignoreEvent(true); }else{ ADSR.setAttribute(ADSR.Attack, knbResetAt.getValue()); } } lastNote = n; if (lastKs != knbKs.getValue()) return Message.ignoreEvent(true); eventIds.setValue(n, Message.makeArtificial()); }
-
RE: Make the Gain knob smooth the gain?
I found that KS will overwrite the value of lastNote. When the third KS is triggered, eventIds.setValue(lastNote, Synth.playNote(lastNote, Message.getVelocity())); does not play the original note value. Is it possible to write the lastNote value back to the first value in the onNoteOff function?
-
RE: Make the Gain knob smooth the gain?
@Chazrox I used Synth.noteOffByEventId() instead and it works fine now
-
RE: Make the Gain knob smooth the gain?
@d-healey said in Make the Gain knob smooth the gain?:
@CatABC said in Make the Gain knob smooth the gain?:
the note triggered by the third KS cannot be stopped.
Yeah this is the kind of hanging note issue I said you might run into. I'm just testing with my keyboard in realtime, haven't tried with MIDI in a daw but I expect it is less forgiving.
You'll need to dig into the code to see how to mitigate the hanging notes.
It's a bit cumbersome to work on because each time you make a change to one of the scripts you need to copy it over to the others. If you move it to an external file it might automatically update the others when it's compiled, I'm not sure though.
I added this line of code to each onNoteOff,
Synth.addVolumeFade(eventIds.getValue(lastNote), 500, -100);
and it will have this error,
! onNoteOff() - Line 11, column 21: Event ID must be positive
but the note can be stopped. In addition, there is currently a problem that the third note does not play the note pressed above, but the note of KS itself.
-
RE: How to use KeySwitch to trigger sampling?
@ulrik said in How to use KeySwitch to trigger sampling?:
@CatABC I guess that's how the eventData Envelopes work, if you trigger a key switch the fade will not be applied until you play next key
It seems to work flawlessly when playing legato but as soon as you release a playing key, and the fade has not worked its way through, it will continue the fade as soon as you start playing a key again.
It would be nice if the smoothing time will elapse even if no playing key is pressed@d-healey I set the Smooth value of the EventData Envelope of the current Articulation to 1 when triggering other KS to avoid the Xfade at the beginning, but when switching the third KS on the same note, I can't set the second EventData Envelope back to its original value, or do you have any idea to solve this problem?
-
RE: Make the Gain knob smooth the gain?
Aha, here is a free software loopMIDI, which can transfer DAW MIDI information to HISE in real time.
-
RE: Make the Gain knob smooth the gain?
@d-healey I tried your Snippet, and I don't know if you have the same problem. When the third KS is triggered, the note triggered by the third KS cannot be stopped. In addition, when switching from the first KS to the second KS, and then switching from the second KS back to the original KS, there will be no sound, but there is always a level display on the waveform generator. I searched for a long time, but I couldn't solve the problem. This problem is too frustrating.