electro-music.org   Dedicated to experimental electro-acoustic
and electronic music
 
 Front Page  |  Radio  |  Forum  |  Media  |  Playlists  |  Wiki
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
Need a Ticking Sound
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [7 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Inventor
Stream Operator


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

PostPosted: Fri Dec 26, 2008 7:56 am    Post subject: Need a Ticking Sound
Subject description: for a metronome
Reply with quote  Mark this post and the followings unread

Hi, I'd like to write a metronome application and I'd like to know what is the appropriate sound and how can I make it with ChucK Ugens. I don't want a sample as that would complicate the download process. Also, what should a metronome application do? Different rates of ticking is all I can think of, I've never worked with a metronome.
_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 7678
Location: The Hague, NL
G2 patch files: 3

PostPosted: Fri Dec 26, 2008 8:53 am    Post subject: Reply with quote  Mark this post and the followings unread

The "classical" approach would likely be a impulse into a resonant (bandpass or maybe lowpass) filter. If I had to make one now I'd probably go about it the lazy way and take the Shakers, Shakers can do nice clicks and it's super-easy. Short burst of noise, short oscillator beeps, etc, would all do as well. Keep the sound brief and relatively high pitched so it's more clear what exact moment is being indicated.

That's all that oldfashioned metronomes do; just give clicks at a steady rate.

Modern (digital) ones tend to also give a higher pitched (or louder) click every 4 beats (or 3 when waltzing). When practising all by yourself that's not that useful but it can be when playing to a backing track. If you want to get fancy you could include "swing" or "shuffle", meaning the spacing between the "down" and "up" beats isn't equal.

That's basically all there is to it; metronomes are very, very simple and that's more or less the whole point of them.

_________________
Kassen
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Inventor
Stream Operator


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

PostPosted: Fri Dec 26, 2008 9:39 am    Post subject: Reply with quote  Mark this post and the followings unread

How's this? It ticks once per second.


Metronome1.ck
 Description:
Just a Metronome

Download (listen)
 Filename:  Metronome1.ck
 Filesize:  871 Bytes
 Downloaded:  324 Time(s)


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



Joined: Aug 28, 2006
Posts: 858
Location: Guangzhou, China
Audio files: 4

PostPosted: Fri Dec 26, 2008 10:01 am    Post subject: Reply with quote  Mark this post and the followings unread

As for the sound of a metronome, I agree with Kassen. In an old-school mechanical metronome, the click comes from something hitting something else, and the vibrational modes can be approximated by one or more resonant filters.

A few months ago I did a metronome addition to my tempoclock GUI. It feeds an impulse through three ringing filters in parallel. (No, I didn't make these numbers up -- I tuned them by ear using a different GUI.) I get a nice woody "tock" sound.

Frequencies: 403.06749750304, 2947.8690441738, 992.38941400907
Amplitudes: 0.15740193350554, 1, 0.63826208002513
Ring times: 0.017389599589788, 0.0032695745154834, 0.0098681694619578

"Ring time" is the time it takes the filter's impulse response to decay to -60dB -- supercollider's Klank and Ringz UGens use the ring time instead of Q. I tried to figure out how to convert the decay time into Q but I'm making some stupid algebra error somewhere and I don't have time to figure it out.

hjh

_________________
ddw online: http://www.dewdrop-world.net
sc3 online: http://supercollider.sourceforge.net
Back to top
View user's profile Send private message Visit poster's website AIM Address
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 7678
Location: The Hague, NL
G2 patch files: 3

PostPosted: Fri Dec 26, 2008 10:24 am    Post subject: Reply with quote  Mark this post and the followings unread

Indeed, for your wikipedia-search enjoyment; we call this "modal synthesis" because we have filters emulating the instrument's "modes".

If we are going about it properly; a impulse is only a idealised approximation of "a thing hitting a thing", reality is slightly more complicated, for example; using a impulse assumes both objects are perfectly smooth and infinitely hard and inflexible. Such materials -of course- don't actually exist.

Because of this it may be preferable to use a very short burst of noise, we're talking about something that fades in and out in the time of a few samples here. This has another advantage besides realism. When we use a impulse to excite a digital filter the results should always be that filter's impulse response; i.e. always the same. We may as well use a sample. With short bursts of noise the result is always ever so slightly different which should make the final metronome less fatiguing to listen to as our hearing psychology is very good at detecting repetitions that are exactly identical.

I think this may be relevant here in practice as a metronome is likely to be listened to for long stretches of time.

James; you may want to add a unit to your "ring times". A "wood" sound sounds like a great idea to me; I always found the "metal" click of traditional metronomes quite bothersome.

Ah, and once again it becomes clear that if we consider trivially simple questions in enough depth they become quite interesting again :¬).

_________________
Kassen
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Inventor
Stream Operator


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

PostPosted: Fri Dec 26, 2008 10:35 am    Post subject: Reply with quote  Mark this post and the followings unread

Kassen wrote:
... using a impulse assumes both objects are perfectly smooth and infinitely hard and inflexible. Such materials -of course- don't actually exist.


What about George Bush's head?

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


Joined: Jul 06, 2004
Posts: 7678
Location: The Hague, NL
G2 patch files: 3

PostPosted: Fri Dec 26, 2008 4:37 pm    Post subject: Reply with quote  Mark this post and the followings unread

Could be, but the only way to test this would be to find another such object...
_________________
Kassen
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [7 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
Log in
Username:     Password:      Log me on automatically each visit    


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2026 by electro-music.org