RE: double-dotted 8th notes
[email protected] ("Scott Dinn") Tue, 2 Mar 2004 05:55:20 -0800
| Newsgroups | perl.midi |
|---|---|
| Message-ID | <[email protected]> |
Sorry, but its not 7/8 of a quarter-note...here is how I have it defined in
my MIDI building perl script...
$note{'s'} = [ 10, 23, 24, 96 ]; # sixteenth
$note{'sde'} = [ 10, 23, 24, 96 ]; # sixteenth after dotted eighth
$note{'e'} = [ 20, 20, 48, 192 ]; # eighth
$note{'ed'} = [ 30, 20, 72, 288 ]; # dotted eighth
$note{'q'} = [ 40, 20, 96, 384 ]; # quarter
The 288 & 384 define the length of the note being played.
Here's the math:
1) divide eighth note by 2 (192/2=96)
2) add this value to length of eighth note (192+96=288)
3) you know have length of a dotted-eighth note: 288
Dotted means: "add 1/2 of a notes length to itself"
Here is a MIDI dump of a MIDI file that was created using these values.
time_signature 0000 0004 0002 0024
set_tempo 0000 600000 0000 0000
copyright_text_event 0000 0000 0000 0000
copyright_text_event 0000 0000 0000 0000
copyright_text_event 0000 0000 0000 0000
copyright_text_event 0000 0000 0000 0000
copyright_text_event 0000 0000 0000 0000
track_name 0000 0000 0000 0000
patch_change 0000 0009 0000 0000
control_change 0000 0009 0006 0100
Side Stick note_on 0000 0009 0037 0100
Side Stick note_off 0384 0009 0037 0000
Side Stick note_on 0000 0009 0037 0100
Side Stick note_off 0384 0009 0037 0000
Side Stick note_on 0000 0009 0037 0100
Side Stick note_off 0384 0009 0037 0000
Side Stick note_on 0000 0009 0037 0100
Side Stick note_off 0384 0009 0037 0000
Ride Cymbal 1 note_on 0000 0009 0051 0071 <<<
dotted-eighth note
Ride Cymbal 1 note_off 0000 0009 0051 0000 <<<
dotted-eighth note
Bass Drum 1 note_on 0000 0009 0036 0093 <<<
dotted-eighth note
Bass Drum 1 note_off 0288 0009 0036 0000 <<<
dotted-eighth note
Acoustic Snare note_on 0000 0009 0038 0094 <<<
sixteenth note
Acoustic Snare note_off 0096 0009 0038 0000 <<<
sixteenth note
Ride Cymbal 1 note_on 0000 0009 0051 0076
Ride Cymbal 1 note_off 0000 0009 0051 0000
Bass Drum 1 note_on 0000 0009 0036 0090
Bass Drum 1 note_off 0192 0009 0036 0000
Acoustic Snare note_on 0000 0009 0038 0086
Acoustic Snare note_off 0000 0009 0038 0000
Ride Cymbal 1 note_on 0000 0009 0051 0075
Ride Cymbal 1 note_off 0192 0009 0051 0000
Ride Cymbal 1 note_on 0000 0009 0051 0072 <<<
dotted-eighth note
Ride Cymbal 1 note_off 0000 0009 0051 0000 <<<
dotted-eighth note
Bass Drum 1 note_on 0000 0009 0036 0093 <<<
dotted-eighth note
Bass Drum 1 note_off 0288 0009 0036 0000 <<<
dotted-eighth note
Ride Cymbal 1 note_on 0000 0009 0051 0077 <<<
sixteenth note
Ride Cymbal 1 note_off 0096 0009 0051 0000 <<<
sixteenth note
Acoustic Snare note_on 0000 0009 0038 0090
Acoustic Snare note_off 0000 0009 0038 0000
Ride Cymbal 1 note_on 0000 0009 0051 0075
Ride Cymbal 1 note_off 0192 0009 0051 0000
Ride Cymbal 1 note_on 0000 0009 0051 0073
Ride Cymbal 1 note_off 0192 0009 0051 0000
Ride Cymbal 1 note_on 0000 0009 0051 0078
Ride Cymbal 1 note_off 0000 0009 0051 0000
To see and hear what this MIDI file looks like, see my drum lesson for
dotted-eighth notes here (its the 2nd lesson [graphic/midi] down on the
right-hand side of the page):
http://216.103.111.115/perl/drums/index.cgi?Action=OnlineLessons&Skill=Advan
ced&SubCategory=Dotted%20Eighth%20Notes&LessonID=Advanced2
Regards,
Scott
-----Original Message-----
From: Noel Lairson [mailto:[email protected]]
Sent: Monday, March 01, 2004 11:14 PM
To: [email protected]
Subject: Re: double-dotted 8th notes
double-dotted eighth note = 7/8 of a quarter note, so .875 or 84 ticks @ 96
tpqn.
Noel
On Mon, 01 Mar 2004 19:11:59 -0900, Sean M. Burke <[email protected]> wrote:
> I was just looking at MIDI/Simple.pm's %Length hash:
>
> 'wn' => 4, 'dwn' => 6, 'ddwn' => 7, 'twn' => (8/3),
> 'hn' => 2, 'dhn' => 3, 'ddhn' => 3.5, 'thn' => (4/3),
> 'qn' => 1, 'dqn' => 1.5, 'ddqn' => 1.75, 'tqn' => (2/3),
> 'en' => .5, 'den' => .75, 'dden' => .75, 'ten' => (1/3),
> 'sn' => .25, 'dsn' => .375, 'ddsn' => .4375, 'tsn' => (1/6),
>
> and I've looked at this a million times before, but today I just happened
to notice: that says an 8th note is half a quarter note, and a dotted-8th is
.75 of a quarter note, AS IS a double-dotted 8th note?! That can't be
right, can it?
> Shouldn't a double-dotted 8th note be... um... 7/8ths of a quarter note?
7/16ths? Aaaaaaaa Rickeeeee music theory hurts my head waaaaaaa...
> --
> Sean M. Burke http://search.cpan.org/~sburke/
>
>