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. :-)
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?
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.
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].
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.
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.
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.
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.
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:
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.
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
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.
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?
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?
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.
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.
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.
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?
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.
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?
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.
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.
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.
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....
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....
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: