electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » ChucK programming language
Some frequencies for Inventor
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [9 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
robsol
Stream Operator


Joined: Apr 24, 2009
Posts: 2492
Location: Bristol UK
Audio files: 495

PostPosted: Fri May 22, 2009 4:30 pm    Post subject: Some frequencies for Inventor
Subject description: Close encounters melody
Reply with quote  Mark this post and the followings unread

There are 5 notes in the close encounters alien theme:

1 - A 440.00
2 - B 493.88
3 - G 392.00
4 - G 196.00
5 - D 293.66

The melody is from memory, and I read the frequencies off an old book from my education years back.

_________________
Muied Lumens Sub Forum
Bandcamp
Back to top
View user's profile Send private message
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Fri May 22, 2009 5:09 pm    Post subject: Reply with quote  Mark this post and the followings unread

Way cool, Rob! Thanks for posting that. I'll make a song with it for the next ChucK show for sure!!! Ty ty ty!!!
_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
robsol
Stream Operator


Joined: Apr 24, 2009
Posts: 2492
Location: Bristol UK
Audio files: 495

PostPosted: Fri May 22, 2009 5:27 pm    Post subject: Reply with quote  Mark this post and the followings unread

No problem! Looking forward to it!

I very much enjoyed this friday's show! Very Happy

_________________
Muied Lumens Sub Forum
Bandcamp
Back to top
View user's profile Send private message
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Sat May 23, 2009 12:38 am    Post subject: Reply with quote  Mark this post and the followings unread

Here is the Close Encounters song for your enjoyment:

Code:

SinOsc osc => dac;

while (true) {
    440.00 => osc.freq;
    second/2 => now;
    493.88 => osc.freq;
    second/2 => now;
    392.00 => osc.freq;
    second/2 => now;
    196.00 => osc.freq;
    second/2 => now;
    293.66 => osc.freq;
    second/2 => now;
    0.0 => osc.freq;
    second => now;
}

_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Mon May 25, 2009 4:52 pm    Post subject: Reply with quote  Mark this post and the followings unread

This one uses an array and a BlitSquare:

Code:
BlitSquare osc1 => dac;
3 => osc1.harmonics;
[440.00, 493.88, 392.00, 196.00, 293.00, 0.00] @=> float freqs[];
while (true) {
    for (int i; i<6; i++) {
        second/2 => now;
    }
    (3.0/2.0)*second => now;
}

_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Mon May 25, 2009 5:41 pm    Post subject: Reply with quote  Mark this post and the followings unread

OH, wow, I just thought of the coolest idea for this program. I'll make it accelerometer controlled. When you tilt the sensor one way it gets louder, another faster, another pitch shifted or something... could be kewl! Great stuff for the ChucK show...

Les

_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Mon May 25, 2009 6:56 pm    Post subject: Reply with quote  Mark this post and the followings unread

I did it! It sounds so kewl. This recording is a bit rough, but you'll get the idea...

Les


CloseEncountersTest.mp3
 Description:
Demonstration of the Close Encounters theme with Accelerometer Control

Download
 Filename:  CloseEncountersTest.mp3
 Filesize:  2.28 MB
 Downloaded:  1301 Time(s)


_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Mon May 25, 2009 7:29 pm    Post subject: Reply with quote  Mark this post and the followings unread

Rob (Muied Lumens) in the chatroom suggested adding a Tuba feature, dropping the frequency with a ChucKian pitch shifter when the accelerometer is upside down, so here it is...

Les


CloseEncountersTest4Rob.mp3
 Description:
Test with Tuba for Rob...

Download
 Filename:  CloseEncountersTest4Rob.mp3
 Filesize:  2.26 MB
 Downloaded:  1231 Time(s)


_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Mon May 25, 2009 7:46 pm    Post subject: Reply with quote  Mark this post and the followings unread

Once more, this time with a square wave instead of a triangle wave, again for Rob...

Les


CloseEncountersTest4Rob2.mp3
 Description:
Test of Close Encounters Theme with Square Wave, ready for the show!

Download
 Filename:  CloseEncountersTest4Rob2.mp3
 Filesize:  2.35 MB
 Downloaded:  1242 Time(s)


_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [9 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » ChucK programming language
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use