mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 14:15:46 +01:00
Wiimote control surface. Bind one wiimote by pressing 1+2 after the surface module is loaded. You need to bind every time you start ardour:
A Toggle play/stop
D-pad:
Up/Down: scroll tracks in the editor
Left/Right: move playhead (nudge)
+/- Zoom
1 Arm selected track(s) for recording
2 Toggle recording
As an extra, if you press down B and then A to stopp recording pass, Ardour scraps the recorded audio.
This is a work in progress. Please test.
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4079 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
3043b68bfb
commit
43d868cde8
9 changed files with 416 additions and 2 deletions
60
libs/surfaces/wiimote/SConscript
Normal file
60
libs/surfaces/wiimote/SConscript
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
# -*- python -*-
|
||||
|
||||
import os
|
||||
import os.path
|
||||
import glob
|
||||
|
||||
Import('env final_prefix install_prefix final_config_prefix libraries i18n')
|
||||
|
||||
wiimote = env.Clone()
|
||||
|
||||
#
|
||||
# this defines the version number of libardour_wiimote
|
||||
#
|
||||
|
||||
domain = 'ardour_wiimote'
|
||||
|
||||
wiimote.Append(DOMAIN = domain, MAJOR = 1, MINOR = 0, MICRO = 0)
|
||||
wiimote.Append(CXXFLAGS = "-DPACKAGE=\\\"" + domain + "\\\"")
|
||||
wiimote.Append(CXXFLAGS="-DLIBSIGC_DISABLE_DEPRECATED")
|
||||
wiimote.Append(PACKAGE = domain)
|
||||
wiimote.Append(POTFILE = domain + '.pot')
|
||||
|
||||
wiimote_files=Split("""
|
||||
wiimote.cc
|
||||
interface.cc
|
||||
""")
|
||||
|
||||
wiimote.Append(CCFLAGS="-D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE")
|
||||
wiimote.Append(CXXFLAGS="-DDATA_DIR=\\\""+final_prefix+"/share\\\"")
|
||||
wiimote.Append(CXXFLAGS="-DCONFIG_DIR=\\\""+final_config_prefix+"\\\"")
|
||||
wiimote.Append(CXXFLAGS="-DLOCALEDIR=\\\""+final_prefix+"/share/locale\\\"")
|
||||
wiimote.Append(LINKFLAGS="-lcwiid")
|
||||
#wiimote.Append(CPPPATH = libraries['jack'].get('CPPPATH', []))
|
||||
|
||||
wiimote.Merge ([
|
||||
libraries['ardour'],
|
||||
libraries['ardour_cp'],
|
||||
libraries['sndfile-ardour'],
|
||||
libraries['midi++2'],
|
||||
libraries['pbd'],
|
||||
libraries['sigc2'],
|
||||
libraries['usb'],
|
||||
libraries['xml'],
|
||||
libraries['glib2'],
|
||||
libraries['glibmm2']
|
||||
])
|
||||
|
||||
libardour_wiimote = wiimote.SharedLibrary('ardour_wiimote', wiimote_files)
|
||||
|
||||
Default(libardour_wiimote)
|
||||
|
||||
if env['NLS']:
|
||||
i18n (wiimote, wiimote_files, env)
|
||||
|
||||
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour2', 'surfaces'), libardour_wiimote))
|
||||
|
||||
env.Alias('tarball', env.Distribute (env['DISTTREE'],
|
||||
[ 'SConscript' ] +
|
||||
wiimote_files +
|
||||
glob.glob('po/*.po') + glob.glob('*.h')))
|
||||
Loading…
Add table
Add a link
Reference in a new issue