Sponsored Content
Full Discussion: A metronome...
Operating Systems OS X (Apple) A metronome... Post 302946024 by wisecracker on Friday 5th of June 2015 05:51:03 PM
Old 06-05-2015
Hi C688...

I already knew that and have already done similar in some Linux flavours but there is no such animal as /dev/dsp in Apple gear. There is not likely to be either so __direct__ access to a device is not possible. Hence the use of OSX's afplay command that exists in virgin OSX installs.

Bazza...

EDIT:
You might be interested in this I wrote a few years ago:-
Metronome For Beginner Musicians... « Python recipes « ActiveState Code

Last edited by wisecracker; 06-05-2015 at 06:55 PM.. Reason: see above.
 
KMETRONOME(1)						     KMetronome User's Manual						     KMETRONOME(1)

NAME
kmetronome - MIDI metronome using ALSA sequencer and KDE user interface SYNOPSIS
kmetronome [Standard options...] DESCRIPTION
KMetronome is a MIDI metronome with KDE interface based on the ALSA sequencer. It is a tool for musicians and music students to keep the rhythm while playing musical instruments. It uses MIDI for sound generation instead of digital audio, allowing low CPU usage, and very accurate timing thanks to the ALSA sequencer. OPTIONS
Generic options: --help Show help about options --help-qt Show Qt(TM) specific options --help-kde Show KDE specific options --help-all Show all options --author Show author information -v,--version Show version information --license Show license information KDE options: --caption caption Use caption as name in the titlebar. --icon icon Use icon as the application icon. --config filename Use the alternative configuration filename --nocrashhandler Disable the crash handler, to get core dumps. --waitforwm Waits for a WM_NET compatible windowmanager. --style style Sets the application GUI style. --geometry geometry Sets the client geometry of the main widget. Qt(TM) options: --display displayname Use the X-server display displayname. --session sessionId Restore the application for the given sessionId. --cmap Causes the application to install a private color map on an 8-bit display. --ncols count Limits the number of colors allocated in the color cube on an 8-bit display, if the application is using the QApplication::ManyColor color specification. --nograb Tells Qt(TM) to never grab the mouse or the keyboard. --dograb Running under a debugger can cause an implicit --nograb, use --dograb to override. --sync Switches to synchronous mode for debugging. --fn,--font fontname Defines the application font. --bg,--background color Sets the default background color and an application palette (light and dark shades are calculated). --fg,--foreground color Sets the default foreground color --btn,--button color Sets the default button color. --name name Sets the application name. --title title Sets the application title (caption). --visual TrueColor Forces the application to use a TrueColor visual on an 8-bit display. --inputstyle inputstyle Sets XIM (X Input Method) input style. Possible values are onthespot, overthespot, offthespot and root. --im XIM server Set XIM server. --noxim Disable XIM --reverse mirrors the whole layout of widgets --stylesheet file.qss applies the Qt(TM) stylesheet to the application widgets LICENSE
This manual page was written by Pedro Lopez-Cabanillas plcl@users.sourceforge.net Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or any later version published by the Free Software Foundation; considering as source code all the file that enable the production of this manpage. AUTHOR
Pedro Lopez-Cabanillas <plcl@users.sourceforge.net> Author. KMetronome 2009-06-27 KMETRONOME(1)
All times are GMT -4. The time now is 03:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy