Nicholas J Humfrey > Audio-JackMiniMix > Audio::JackMiniMix

Download:
Audio-JackMiniMix-0.02.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.02   Source  

NAME ^

Audio::JackMiniMix - Talk to JACK Mini Mixer using OSC

SYNOPSIS ^

  use Audio::JackMiniMix;

  my $mix = new Audio::JackMiniMix('osc.udp://host.example.net:3450/');
  $mix->set_channel_gain( 1, -50 );
  $mix->set_channel_gain( 2, -90 );

DESCRIPTION ^

The Audio::JackMiniMix module uses Net::LibLO to talk to a JackMiniMix server. It can be used to get and set the gains and labels for the channels of the mixer.

new( oscurl )

Connect to JackMiniMix process specified by oscurl. A channel_count() query is sent to the mixer, if the mixer does not respond, then undef is returned.

channel_count()

Returns the number of stereo input channels that the mixer has.

get_channel_gain( channel )

Returns the gain (in decibels) of channel.

channel is the number of the channel (in range 1 to total number of channels).

set_channel_gain( channel, gain )

Sets the gain of channel channel to gain dB.

channel is the number of the channel (in range 1 to total number of channels).

gain is the gain (in decibels) to set the channel to (in range -90 to 90 dB).

get_channel_label( channel )

Returns the label (string) of channel number channel.

channel is the number of the channel (in range 1 to total number of channels).

set_channel_label( channel, label )

Sets the label (string) of channel number channel to label.

channel is the number of the channel (in range 1 to total number of channels).

label is the new label for the channel.

ping()

Pings the mixer to see if it is there.

Returns 1 if the server responds, or 0 if there is no reply.

get_url()

Returns the OSC URL of the JackMiniMix deck.

SEE ALSO ^

Net::LibLO

http://www.ecs.soton.ac.uk/~njh/jackminimix/

AUTHOR ^

Nicholas J. Humfrey <njh@aelius.com>

COPYRIGHT AND LICENSE ^

Copyright (C) 2005 Nicholas J. Humfrey

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

syntax highlighting: