Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
wiki:scripts_and_tools [2012/04/09 21:08] – [convert sound files with libsndfile] emrumwiki:scripts_and_tools [2012/06/22 21:37] – [save and restore irq process priorities] emrum
Line 22: Line 22:
  
   * [[/wiki/script_midi2hydrogen| convert drums of a midi file to hydrogen format ]]   * [[/wiki/script_midi2hydrogen| convert drums of a midi file to hydrogen format ]]
 +
 +\\
 +
 +
 +
 +==== SFZ (sound-bank-definition) to Hydrogen (drumkit xml-file) ====
 +
 +
 +  * [[/wiki/user/emrum/sfz_to_h2| sfz to hydrogen script ]]
 +
  
 \\ \\
Line 147: Line 157:
  
 === convert all FLAC files in a directory to OGA format (vorbis-encoded stream in ogg-container) === === convert all FLAC files in a directory to OGA format (vorbis-encoded stream in ogg-container) ===
 +\\ 
 +** Note: ** There is a simple and excellent GUI tool available for audio conversion: [[http://soundconverter.org/| SoundConverter ]] \\ 
 +It is included in the ubuntu repository. 
 +\\ 
 +\\ 
 +\\
 <code bash> <code bash>
 #!/bin/bash #!/bin/bash
Line 382: Line 397:
   * ardour3 + video patch   * ardour3 + video patch
  
 +\\
 \\ \\
  
 +
 +==== JACKdbus - Desktop integration - backend-switching ====
 +  * [[http://gareus.org/blog/jack2dbus| jack2 backend switching ]]
 +  * [[http://gareus.org/wiki/jack2contol|jack2 dbus control ]]
 +
 +\\
 +\\
 +
 +==== save and restore irq process priorities ====
 +\\
 +<code bash>
 +
 +#!/bin/bash
 +#
 +# rtirq_power: save and restore irq process priorities
 +#
 +# This script is called when a change in power status happens, when
 +# suspending it saves a list of all irq process priorities, when
 +# resuming it changes the priorities of the proper irq processes
 +# to the saved values
 +#
 +# Copyright (c) 2012 Fernando Lopez-Lezcano
 +#
 +#   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.
 +#
 +#   You should have received a copy of the GNU General Public License along
 +#   with this program; if not, write to the Free Software Foundation, Inc.,
 +#   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 +
 +. "${PM_FUNCTIONS}"
 +
 +case $1 in
 +    hibernate|suspend)
 + /bin/ps -eo rtprio=,comm= --sort -rtprio | /bin/egrep ' irq/[0-9]*' | savestate rtirq
 +        ;;
 +    thaw|resume)
 + restorestate rtirq | while read IRQPRIO IRQCOMM ; do
 +     if [ -n "${IRQPRIO}" -a -n "${IRQCOMM}" ] ; then
 + IRQPID=`/bin/ps -e -o pid,comm | grep " ${IRQCOMM}" | awk '{print $1}'`
 + if [ -n "${IRQPID}" ] ; then
 +     PRIO=`/bin/ps -p ${IRQPID} -o rtprio=`
 +     if [ ${PRIO} -ne ${IRQPRIO} ] ; then
 + /usr/bin/chrt -f -p ${IRQPRIO} ${IRQPID}
 +     fi
 + fi
 +     fi
 + done
 +        ;;
 +    *) exit $NA
 +        ;;
 +esac
 +
 +
 +</code>
 +
 +\\
 +<quote>
 +
 +A first try at using a pm-utils script. This script saves the priority state of all irq* processes and restores them after a resume. It only restores the priority for processes that still exist after the resume, and will do nothing for new processes (ie: you plugin a usb card while the computer is sleeping). That would be taken care by my previously posted udev script which would change priority of newly inserted soundcards. I put 05rtirq it in /etc/pm/sleep.d/ directory... it seems to be working fine in my laptop.
 +
 +</quote>
 +\\
 +\\
 +\\
 +\\
 +
 +
 +
 +==== Lisalo - Linux Sampler Loader ====
 +(Thanks to Nils Gey)
 +\\
 +\\
 +
 +This is the Release of Lisalo 1.0
 +Grab it here, no installing required:
 +git clone git://github.com/nilsgey/Lisalo.git
 +\\
 +\\
 +
 +Linux Sampler Loader is a command line program (python) that loads entire
 +directories of sample files or takes instructions from a meta .lsl file
 +with relative paths to samples.
 +\\
 +\\
 +
 +This program exists because you can't share linuxsampler lscp files
 +or even move files around on your own disk. Lscp files only work with
 +absolute paths and are too low level anyway.
 +\\
 +\\
 +
 +Now you can quickly and easily load sampled instruments without
 +even starting a GUI. The lsl files are very simple, see example.lsl,
 +and can be shipped around with your sfz sample package like the
 +Sonatina Symphonic Orchestra (lsl file already included in this release)
 +\\
 +\\
 +
 +Version 1.0 Licensed under GPLv3 by Nils Gey, June 2012
 +\\
 +Only dependencies are Python and Linuxsampler.
 +\\
 +\\
 +https://github.com/nilsgey/Lisalo
 +\\
 +irc.freenode.org #laborejo
 +
 +\\
 +\\
 \\ \\
  
wiki/scripts_and_tools.txt · Last modified: 2017/12/03 12:22 by nilsge