From 1dd298641afe6c3cd28a8a362d8cdf4928178544 Mon Sep 17 00:00:00 2001 From: Angel Ortega Date: Sat, 8 Dec 2007 10:16:22 +0100 Subject: [PATCH] Added an experimental try of unifying all ss events in one structure. --- ss_song.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/ss_song.c b/ss_song.c index fd018c4..6997566 100644 --- a/ss_song.c +++ b/ss_song.c @@ -36,6 +36,33 @@ Data ********************/ +/* EXPERIMENTAL: unify all structs in one */ +struct _ss_env { + song_ev_type type; /* event type */ + int frame; /* frame number (time) */ + int trk_id; /* track id */ + int event_id; /* event id */ + int note_id; /* note id */ + int note; /* MIDI-like note (or base) */ + int min; /* MIDI-like minimum note */ + int max; /* MIDI-like maximum note */ + int channel; /* channel (or first channel) */ + int skip_channels; /* channels to skip when spreading */ + sample_t vol; /* volume or gain */ + sample_t initial; /* initial vol */ + sample_t final; /* final vol */ + double amount; /* sust, attck or portmnt (frames), tempo in bpm */ + double depth; /* depth */ + double freq; /* freq */ + double loop_start; /* loop start */ + double loop_end; /* loop end */ + double len; /* note length (1: whole note) or effect size */ + double phase; /* phase */ + char *file; /* path to .wav or .pat file */ + char *author; /* track author */ + char *name; /* track name */ +}; + struct ss_ev_generic { song_ev_type type; /* event type */ int frame; /* frame number (time) */ -- 2.11.4.GIT