Mercurial > hg > amuse
comparison constructors.lisp @ 22:99ccd775245a
Moved midi out of main files
darcs-hash:20061214125711-f76cc-c9e7f9af1054c67473ff6d8a8e3b84e45fe43f35.gz
author | David Lewis <d.lewis@gold.ac.uk> |
---|---|
date | Thu, 14 Dec 2006 12:57:11 +0000 |
parents | 2f331bbdfab8 |
children |
comparison
equal
deleted
inserted
replaced
21:c389ba869ef9 | 22:99ccd775245a |
---|---|
36 (make-instance 'chromatic-pitched-event | 36 (make-instance 'chromatic-pitched-event |
37 :number pitch-number | 37 :number pitch-number |
38 :time onset | 38 :time onset |
39 :interval duration)) | 39 :interval duration)) |
40 | 40 |
41 (defun make-midi-pitched-event (pitch-number velocity patch | |
42 channel track onset duration) | |
43 (make-instance 'midi-pitched-event | |
44 :number pitch-number | |
45 :velocity velocity | |
46 :patch patch | |
47 :channel channel | |
48 :track track | |
49 :time onset | |
50 :interval duration)) | |
51 | |
52 (defun make-midi-percussive-event (pitch-number velocity patch | |
53 channel track onset duration) | |
54 (make-instance 'midi-percussive-event | |
55 :sound pitch-number | |
56 :velocity velocity | |
57 :patch patch | |
58 :channel channel | |
59 :track track | |
60 :time onset | |
61 :interval duration)) | |
62 | |
63 (defun make-basic-time-signature (numerator denominator onset duration) | 41 (defun make-basic-time-signature (numerator denominator onset duration) |
64 (make-instance 'basic-time-signature | 42 (make-instance 'basic-time-signature |
65 :numerator numerator | 43 :numerator numerator |
66 :denominator denominator | 44 :denominator denominator |
67 :time onset | 45 :time onset |
71 (make-instance 'basic-key-signature | 49 (make-instance 'basic-key-signature |
72 :sharp-count sharp-count | 50 :sharp-count sharp-count |
73 :time onset | 51 :time onset |
74 :interval duration)) | 52 :interval duration)) |
75 | 53 |
76 (defun make-midi-key-signature (sharp-count mode onset duration) | |
77 (make-instance 'midi-key-signature | |
78 :sharp-count sharp-count | |
79 :mode mode | |
80 :time onset | |
81 :interval duration)) | |
82 | |
83 (defun make-tempo (bpm onset duration) | 54 (defun make-tempo (bpm onset duration) |
84 (make-instance 'tempo | 55 (make-instance 'tempo |
85 :bpm bpm | 56 :bpm bpm |
86 :time onset | 57 :time onset |
87 :interval duration)) | 58 :interval duration)) |