Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A simple program to play music notes given by their frequency on a Mac device.

Notifications You must be signed in to change notification settings

KevinSchulcz/NotePlayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

4 Commits

Repository files navigation

NotePlayer

A C program that plays a specified note on a macOS device's built-in hardware, using AudioToolbox. The user may give the program a frequency to play, and set the octave and volume to play it at.

Getting Started

Requirements

  • A Mac system with macOS 10.0+

Compiling

clang -lc -framework AudioToolbox NotePlayer.c -o NotePlayer

Executing

./NotePlayer <frequency> <octave difference> <up(0)/down(1)> <optional: volume(1-100)>

Ex for one octave above middle C:

./NotePlayer 261.6 1 0

Authors

Kevin Schulcz

About

A simple program to play music notes given by their frequency on a Mac device.

Topics

Resources

Stars

Watchers

Forks

Languages

AltStyle によって変換されたページ (->オリジナル) /