Programming :: Playing Piano From The Terminal

Oct 14, 2010

In short, what I want to achieve is this: echo "a b c a" | piano.sh And hear it, like it was played on a piano. As you can see, I really would like to keep it simple, it is for a school project, and this is a minor but important thing. I am getting the data from the serial port and that part is working. I have been looking at software synthesizers etc. but again, I want it to be simple. :-)

View 5 Replies


ADVERTISEMENT

General :: Playing Audio Files Via Terminal?

May 21, 2010

How can I play audio files via terminal. Afaik I've to install mplayer. Suppose I want to play list of audio files, is there any way to play all the files simultaneously via terminal?

View 7 Replies View Related

Fedora :: Xinit Playing Sound In Wrong Terminal

Mar 18, 2011

I'm using Fedora 14 and wanna place xbmc on another terminal using " xinit xbmc -- :2". The xbmc lunched fine in another terminal. But when playing sound, I can only hear it in terminal 1. That is, I open a gnome-terminal in terminal 1, run "xinit xbmc -- :2" inside -> xbmc lunched in terminal 2 -> play a video with xbmc -> graph is ok, but sound come out from terminal 1 rather than terminal 2. This shouldn't be a problem with xbmc, for when I use mplayer instead, sound come out from wrong terminal too.

View 1 Replies View Related

Ubuntu :: MIDI Controller - USB Piano Keyboard Setup

Mar 31, 2010

I'm looking for info on setting up a piano type usb keyboard (also called midi controller?) in ubuntu. Any of the references I have found cite alsa, and I'm assuming they won't work with pulse. Also I'm sort of stalling on purchasing said keyboard until I feel there's a reasonable probability of it working. Here's a reference with alsa [URL].

View 1 Replies View Related

Ubuntu Multimedia :: Yamaha Disklavier Piano Won't Play Midi

Apr 21, 2010

I have switched from windows in the past few months and have solved all my issues with Ubuntu so far. The only problem I still have now is that I can not play midi files on my piano through Ubuntu. This is the piano I have: [URL] When I had windows, I used Dell Latitude c600, Van Basco's software: [URL] and one of these USB-midi cables: [URL]

to play my midi files on the piano. In ubuntu 9.1 I can play the midi but only through the laptop. It does not get sent to the piano. I'm new to Linux but can follow direction. Hate to be going back to windows. Installing Van Basco through wine keeps crashing and does not work.

View 1 Replies View Related

Ubuntu Multimedia :: How To Setup MIDI Keyboard To Play Piano

Jun 5, 2010

I just switched to Ubuntu 10.04 and I'm looking for a way to be able to play piano with my M-audio Keystation 88es keyboard.In Windows I use the amazing Synthogy Ivory piano sounds. Is there anything similar in linux? everything up? I followed different instructions on how to setup Jack to make it work and it can see the keyboard but I wasn't able to get any sound out of it.My computer has the Asus built-in sound card and I also have a separate M-audio Audiophile 192 sound card.

View 1 Replies View Related

Ubuntu Multimedia :: Looking Virtual Keyboard (electric Piano) Emulator

Sep 18, 2010

yes im looking for a electric piano emulator for linux?

View 5 Replies View Related

Ubuntu Multimedia :: Open Different Audio File Tracks Into The Same Piano Roll?

Mar 24, 2010

My question would be this: is it possible to open different audio file tracks into the same piano roll, or even open multiple piano roll instances at the same time? If the answer is "no", then does anyone know a good LADSPA sampler plugin? Basically, I need to be able to load multiple samples into the same instrument and have them set to a range on the keyboard, similar to what the advanced sampler in Reason does.

Having multiple samples in the beat editor is not the same, as I need to control the note off (without re-loading the sample and just changing the end time, that is too cumbersome). If any of this seems weird I should specify that I am making breakcore music where drum beat samples are highly manipulated and a piano roll for each sample is just going to be too annoying to program.

View 4 Replies View Related

Programming :: Playing Music In C++

Nov 28, 2010

I am using C++ and Gtk to make a music player. I was looking for some library that will allow me to play a music file, preferably mp3, wav, aac, and more if possible. Also, how can I get info on the file like the artist, album, genre, etc. Hopefully the library will do that also.

View 2 Replies View Related

Programming :: Playing Sound In Javascript And HTML5?

Jan 14, 2011

I can play a sound on my local machine using the following code, but when I upload to a server the same code it does not play. I cannot work out why, the link below gives the code. The multi channel code is here:

[URL]

Code:
<audio id="multiaudio1" src="audio/flute_c_long_01.wav" preload="auto"></audio>
<audio id="multiaudio2" src="audio/piano_chord.wav" preload="auto"></audio>
<audio id="multiaudio3" src="audio/synth_vox.wav" preload="auto"></audio>
<audio id="multiaudio4" src="audio/shimmer.wav" preload="auto"></audio>

[Code].....

View 4 Replies View Related

Programming :: ALSA Playing Multiple Sounds At Same Time

Mar 10, 2010

I've worked out how to get ALSA libasound code working for an application. However I can't workout how to get multiple sounds working at once. I can't seem to find any google examples of mutiple sounds. EG tune plays while pressing buttons makes clicks. I'm using an embedded board so need to use ALSA not an addon e.g. sdlmixer, jack, etc.

View 3 Replies View Related

Programming :: Java Package To Use For Playing Music With Different Kind Of Instruments?

Jul 23, 2009

Does anybody know any Java package that can be used for playing music with different kind of instruments. Is any package which implements the java.sound api http://java.sun.com/products/java-me.../doc-midi.html

View 1 Replies View Related

Debian Programming :: Broken Pipe Error When Try Playing YouTube Playlist

Nov 16, 2014

I wrote y bash script that opens YouTube playlist using youtube-dl and VLC applications: the output of youtube-dl is the input of VLC. The only problem is VLC needs to be closed after each playlist item unless I get the error message of the operating system:

"ERROR: unable to write data: [Errno 32] Broken pipe".

I understand the reason but I don't know how to resolve it: it is possible to close previous STDIN of VLC without killing the entire VLC process so that a new youtube-dl instance can connect to the same VLC instance? In short this is my question. The problem is detailed here: Downloading and playing videos and subtitles.

View 0 Replies View Related

Programming :: Get Input Without The Terminal?

Apr 1, 2010

I've done a little program, it's the snake game. I use an X window to show the snake and all that but the input is taken from the terminal. That means that what I have to do to play the game is open it with the terminal and then the game opens but then I have to go to the terminal again to move the snake. if I open the game from the GUI I can't do anything because it doesn't take my directions. What do I have to do in order to get the program to have a connection with my keyboard? I use getchar() to get the input, maybe there is something else?

View 9 Replies View Related

Programming :: Make C++ Run Without The Terminal?

Oct 4, 2010

I've made a C++ program and compiled it and I can run it in the terminal but I would like it to run like a normal application in the application menu or on the desktop but I don't know how. How do I make it run like a program in the application menu?

View 3 Replies View Related

Programming :: Open Up A Terminal Within Vim

Feb 27, 2009

I've been learning C recently and have used Vim to write my code, however switching between tabs to compile and run annoys me so i was wondering if it would be possible to have a terminal in the bottom half of the screen inside vim. similar to most text editors.

View 1 Replies View Related

Software :: Work In Terminal And C Programming?

May 10, 2010

I am having one Laptop. In that i am facing some error while installing linux OS. so i planned to install only terminal in my laptop. i dont want any gnome and etc.. simply i am going to use only c programming in my terminal. gcc compiler and shell to work "c" is enough for me. How to work in terminal and c programming.

View 6 Replies View Related

Programming :: Cannot Compile C++ Code In Terminal

Feb 13, 2011

I am unable to compile C++ program in terminal. Whenever I try to add "#include<iostream.h>" it shows an error and thats why I can not use "cout" and "cin" functions. I installed g++ for this but the problem persists.

View 4 Replies View Related

Programming :: Cannot Open Terminal On Startup

Jun 8, 2011

I wanted to write the script which runs at startup and opens the terminal window the moment desktop screen appears(GNU linux).

View 3 Replies View Related

Programming :: Copy At Terminal With Progress Bar

Mar 9, 2009

After searching I cant find script that can deal with directories. All the found scripts work file to file and not directory to directory. Someone know script that can deal with all this situation?

View 8 Replies View Related

Programming :: How To Find Out Width Of Terminal

Mar 19, 2010

I wonder how CLI applications know the width of the terminal. For example, how does ls know how many columns to use?

How do package managers like pacman know what length to make the download progress bar?

Also, how do they redraw the progress bar in the same line?

View 11 Replies View Related

Programming :: Find What Is Displaying In A Terminal?

Jan 23, 2011

Is there any way to find what is displaying in a terminal in C language?

I want to automate ssh login process, I know that I can use "expect" but I want to write another program in C myself.

In first ssh try to a host, ssh prints a message like this:

Quote:

The authenticity of host '192.168.30.1 (192.168.30.1)' can't be established. RSA key fingerprint is **** Are you sure you want to continue connecting (yes/no)?

and waits for an answer. I want to enter "yes" programatically when the message appears, but I don't know how to find if the message is appeared or not. In this case problem can be solved in another way, deleting the entry of the host from ~/.ssh/known_hosts before executing the ssh command, sleeping for one or two second and entering yes. Same problem exist for password prompt and this can be solved by sleeping, too.

But it is not a general solution and can be failed if prompts appear after entering required keys.

View 8 Replies View Related

Programming :: Script To Run At Terminal Startup?

Jun 2, 2010

I have written a script to display a message that I wish to run whenever a terminal session is initialized.
The script is working but I am unclear how to implement it.Do I need to create a file called 'gnome-terminal.sh' in /etc/profile.d?

View 1 Replies View Related

Debian Programming :: Command Followed By And Still Closes With Terminal?

Jan 4, 2014

Running debian wheezy. I noticed recently, whenever I fork a process using "&" from a terminal, such as

Code: Select allleafpad &

it starts up, shows the processid in the terminal, but every time when I close the terminal, leafpad gets killed. However, I create a simple bash script,

Code: Select all#!/bin/bash
leafpad&
exit

The script launches leafpad, then exits out leaving leafpad running, as it should. Is what I mentioned above normal? I'm confused, because I think I used to be able to do this in terminal without it depending on the terminal to stay running.

I guess I'm remembering wrong. As it turns out, commands begun on terminal get closed with terminal unless, as mentioned, you use nohup or start subshell. Process hierarchy and tracking etc.

View 6 Replies View Related

Programming :: Get Width/height Of A Terminal Window In C++?

May 28, 2010

How do I find out how many characters fit into a terminal window horizontally and how many lines the terminal window is high (i.e. how many rows and columns are visible - the width and height)? I am using c++ and Linux Mint 8 - Gnome.

View 8 Replies View Related

Programming :: Getting Rid Of Quotes When Dragging A File Into The Terminal

Feb 18, 2010

The following script will work when I type the path to the file I want to checksum, but not when I drag the file to the terminal because the linux terminal (unlike the Mac) automatically puts quotes around the file path, which causes an error. (Clarification: am referring to gnome-terminal. Thanks, GrapefruiTgirl.) I did not find anything in gconf-editor or anywhere else to alter this behaviour, and my post in Launchpad is unanswered so far. (the script in itself is not very useful, I just stumbled upon this error when experimenting with bash).

So, is there a workaround for stripping the quotes from the input, or can I configure the terminal to not quote the input when I drag a file into it (which I would prefer?)

I am currently logged in from Mac OS, but the question refers to ubuntu karmic with which I dual boot.

View 6 Replies View Related

Programming :: Send Epson ESC/P Sequences Through Terminal?

Mar 18, 2011

I want to send Epson ESC sequences to control the printer from terminal.

I figured out if I send

Quote:

echo $FF>/dev/lp0

that is equal to sending 'FF' control sequence. But I have problem when I need to send sequences like,

1. ESC 0 . I sent

Quote:
echo $ESC $0>/dev/lp0
,
Quote:
echo $"ESC 0">/dev/lp0

. They do not work as expected.

2. ESC HT 5 4 (To control Horizontal Tabbing)

How can it be done in bash?

View 4 Replies View Related

Programming :: Not Getting Right Output To Correct Terminal Window

Jun 17, 2010

I have a server client prog in which server is my 'agent' and client is 'manager'. Following is the code for both agent and manager. I want my agent to send what manager is requesting. But it is not working the way I want. The parameters which manager is requesting, agent has to send to manager but in this program result for those parameters is shown on agent's own terminal window. Where as I want them on manager's window. Secondly, there result is not correct, means it is giving ' 0 K ram and 0 no of process....

Code:
//code for MANAGER
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h> .....

View 2 Replies View Related

Programming :: Launching A Terminal Command With A Qt Button?

Feb 9, 2010

I've created a QT interface with some buttons and labels, and i want to launch a terminal command with one of these buttons,but the command maust starts with "sudo",unfortunately it didn't work because it wants root password and i can't enter it even in the Button cammand....

View 6 Replies View Related

Programming :: Add POVRAY And VRML Terminal To GNUPLOT 4.0?

Oct 23, 2010

Currently, I am using CYGWIN and from there I can run GNUPLOT.One night I found out from internet a website (content in portugues) how to install POVRAY. According to this website, I followed these steps:

$ wget -c ftp://ftp.dante.de/pub/tex/graphics/...t-4.0.0.tar.gz
$ wget -c http://t-kita.net/gnuplot_povrml/gnu...vrml-0.3.patch
$ tar zxvf gnuplot-4.0.0.tar.gz

[code]....

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved