note-time

cesars/melody/note-time

No description
note-time
@/note-time
INnumber
note-time
OUT
IN
OUTnumber
To use the node in your project you should have the cesars/melody library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.

C++ implementation

struct State {
};

Number _time[5] = {0.5,1,0.5,0.25,0.125};
               // 0 = start

{{ GENERATED_CODE }}

void evaluate(Context ctx) {
    int t= getValue<input_IN>(ctx);
    if (t >= 5)
        return;
    emitValue<output_OUT>(ctx,_time[t]);
}