Skip to content

Support for samples #23

@mrombout

Description

@mrombout

Since DEMUSE is moving from MIDI to the MOD format, there should be syntax to load samples. For example the following syntax could be used:

sample = "sample" identifier text [sample_length] generator
generator = identifier | function
// will dynamically generate a sine wave
sample Sample01 "Sample 01" 32 function(x){
    return sin(x);
};

// will load a file as a sample
sample Sample02 "Sample 02" genFile("my_file.wav");

// will use a generator (same as Sample 01, generator is just a callback function)
sample Sample03 "Sample 03" genSine;

Specific details have to be researched. But essentially a sample definition could be a callback function that gets called for every part of the sample length (in the above example 32 times).

These should also be support for looping (not included in samples above).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions