Hey guys I was wondering if its
possible to create a step sequencer plugin? Are there any javascript calls to use for precise timing for step sequencers?? Thanks
Best posts made by tshoats
-
Possible to create a Step Sequencer Plugin
Latest posts made by tshoats
-
RE: onClock and onTransport Sync To Host Issue
Thanks, this did work! Got those properties to work very well. I'm creating a very basic sequencer but the timing is way off. The isPlaying property is working, along with all properties, its just onTimer, and the transport tick/metronome is not syncing together properly. The onTimer should sync with the metronome beat, but its not.. any advice on this?? The below snippet is what im working on
const var Tempo = Content.addKnob("Tempo", 0, 0); // [JSON Tempo] Content.setPropertiesFromJSON("Tempo", { "max": 10, "mode": "TempoSync", "stepSize": 1 }); Synth.startTimer(Engine.getMilliSecondsForTempo(Tempo.getValue()) / 1000.0); function onTimer(){ if(Engine.getPlayHead().isPlaying ){ if( parseInt(Math.ceil(Engine.getPlayHead().ppqPosition)) == 1){ Synth.playNote(48,127); } if( parseInt(Math.ceil(Engine.getPlayHead().ppqPosition)) == 2){ Synth.playNote(48,127); } if( parseInt(Math.ceil(Engine.getPlayHead().ppqPosition)) == 3){ Synth.playNote(48,127); } if( parseInt(Math.ceil(Engine.getPlayHead().ppqPosition)) == 4){ Synth.playNote(48,127); } Synth.startTimer(Engine.getMilliSecondsForTempo(Tempo.getValue()) / 1000.0); } }
-
RE: onClock and onTransport Sync To Host Issue
Ok when my host is playing, I'm getting a 0 value when using Engine.getPlayHead() within my onTimer:
Console.print(Math.ceil(Engine.getPlayHead().ppqPosition));
If I can somehow get the play position at any given moment, I can listen when the Transport has been played or stop at any given time. Is this method still working?
-
RE: Graphics Functions
I'm starting to love this framework more and more, these vector api calls remind me of scripting CSS3 with javascript :) . Awesome. David are those black menus HISE native or are those images???
-
RE: onClock and onTransport Sync To Host Issue
Ok ,thanks for the heads up. I actually got the onTimer to work perfectly with syncing to the tempo using Tempo.getValue(), and Engine.getMilliSecondsForTempo() . I like the Time Signature feature built in such as below!! Sweet
const var Tempo = Content.addKnob("Tempo", 0, 0); // [JSON Tempo] Content.setPropertiesFromJSON("Tempo", { "max": 10, "mode": "TempoSync", "stepSize": 1 });
Quick question, your right about the onTransport, its not working in Abelton. Is there any other method to listen for when the Transport, play and stop buttons are pressed?
And lastly, Is there any api docs explaing the 1st, and 2nd object parameter in Content.setPropertiesFromJSON? I'm wondering in detail about what mode, max , stepSize etc.. (Please keep this feature :)
-
onClock and onTransport Sync To Host Issue
Hey to all, I'm having some problems getting the onClock, and Transport callback to sync to my host. I'm trying to fire the OnClock after checking to see if the Transport Host was played or stop.
For some reason, The below snippet is not triggering the transport callback
function onTransport(isStart){ if(isStart){ Console.print("Start"); Synth.setClockSpeed(16); } if(isStart != 1 ){ Console.print("Stop"); Synth.setClockSpeed(0); }
}
I have several samples map to my sampler and the simple sequencer below is not sequencing. it seems as if the onClock callback is not triggering. Any advice? Thanks
var x = [48,51,55,60,63,67,72,75]; var index = 0; function onClock() { index = parseInt(Math.ceil(Engine.getPlayHead().ppqPosition*8.0)); Synth.playNote(x[index%x.length],127); }
-
RE: VST SDK is missing
Actually i'm getting a huge red error message log that says a snippet like below
hi_scripting.obj : error LNK2001: unresolved external symbol "private: void __c
decl TableEditor::refreshGraph(void)" (?refreshGraph@TableEditor@@AEAAXXZ) [C:
Users\ace\Music\Hise\Binaries\Builds\VisualStudio2015\Titus Hise Demo.vcxproj]
hi_scripting.obj : error LNK2001: unresolved external symbol "private: void __c
decl TableEditor::createDragPoints(void)" (?createDragPoints@TableEditor@@AEAAX
XZ) [C:\Users\ace\Music\Hise\Binaries\Builds\VisualStudio2015\Titus Hise Demo.v
cxproj]
hi_scripting.obj : error LNK2001: unresolved external symbol "public: void __cd
ecl TableEditor::connectToLookupTableProcessor(class Processor *)" (?connectToL
ookupTableProcessor@TableEditor@@QEAAXPEAVProcessor@@@Z) [C:\Users\ace\Music\Hi
se\Binaries\Builds\VisualStudio2015\Titus Hise Demo.vcxproj]
hi_scripting.obj : error LNK2001: unresolved external symbol "public: __cdecl T
ableEditor::TableEditor(class Table *)" (??0TableEditor@@QEAA@PEAVTable@@@Z) [C
:\Users\ace\Music\Hise\Binaries\Builds\VisualStudio2015\Titus Hise Demo.vcxproj
]
.....\Compiled\Titus Hise Demo x64.dll : fatal error LNK1120: 185 unresolved
externals [C:\Users\ace\Music\Hise\Binaries\Builds\VisualStudio2015\Titus Hise
Demo.vcxproj]Compiling finished.Cleaning up...
Press any key to continue . . . -
RE: VST SDK is missing
Thanks so much @ Ksn.. this worked!... Quick Question...I have 2 files in the Binaries/Complied folder, one is a object file, the next is a exports library file. How do I get these two to become a .dll file that I place into my VstPlugins folder to use as a plugin within Reaper???
-
VST SDK is missing
Hello to all, I been trying to figure out how to export my plugin, but im having issues. I followed David steps http://forum.hise.audio/topic/356/vst-sdk-is-missing/8, and i'm still having issues. I downloded the latest Steinberg VST SDK, extracted it to my Desktop, ran the copy_vst2_to_vst3_sdk.bat file, and Placed the VST3_SDK folder in the HISE >> tools >> SDK folder.
I then pointed my compiler directory in compile settings to Desktop/HISE-Master/
But anytime I try to export my plugin, I get "VST SDK is missing".. Can anyone help me with this?? Thanks