-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmelody.h
More file actions
13 lines (9 loc) · 724 Bytes
/
melody.h
File metadata and controls
13 lines (9 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef MELODY_H
#define MELODY_H
#include <smf.h>
void generate_random_notes(smf_track_t* track, int num_notes, double start_time, double duration, int volume);
void generate_random_notes_with_scale(smf_track_t* track, int num_notes, double start_time, double duration, int* scale_notes, int num_scale_notes, int volume);
void generate_melody_with_rules(smf_track_t* track, int num_notes, double start_time, double duration, int* scale_notes, int num_scale_notes, int volume) ;
void generate_varied_duration_melody(smf_track_t* track, int num_notes, double start_time, double duration, int* scale_notes, int num_scale_notes, int volume) ;
void get_scale_notes(const char* key, int* scale_notes, int* num_notes);
#endif