FreeBSD Home Audio Studio

Another guest post by @NeoMoevius from Twitter.

Same as earlier with the Native Urban Terror on FreeBSD article.

This time it will be about setting up Home Audio Studio on a FreeBSD 13.1 system.

w701-ardour

The idea is to use software like:

  • Jackaudio/jack
  • Qtractoraudio/qtractor
  • Ardouraudio/ardour
  • MuSE Sequenceraudio/muse-sequencer

The first step is to setup Jack on FreeBSD – make sure to setup the realtime mode – this is very important.

Add mac_priority to /etc/rc.conf file and load the mac_priority kernel module.

# echo 'kld_list="${kld_list} mac_priority"' >> /etc/rc.conf

# kldload mac_priority

Then add yourself to realtime group.

# pw groupmod realtime -m yourself

# grep realtime /etc/group         
realtime:*:47:yourself

You will need to install audio/jack package.

% pkg which -o $( which jackd )
/usr/local/bin/jackd was installed by package audio/jack

The /etc/rc.conf part to run Jack is below.

# grep jack /etc/rc.conf
  jackd_enable="YES"
  jackd_user="username"
  jackd_rtprio="YES"
  jackd_args="-r -d oss -r44100 -p1024 -n2 -w16 -i4 -o8 -C /dev/dsp0 -P /dev/dsp0"

The Qtractor will also require audio/alsa-seq-server to work. The good part is that it (the audio/alsa-seq-server package) comes with rc(8) script to start it so you may enable it with service(8) or sysrc(8) commands.

% /usr/local/etc/rc.d/alsa_seq_server rcvar
# alsa_seq_server
#
alsa_seq_server_enable="NO"
#   (default: "")

# service alsa_seq_server enable
alsa_seq_server enabled in /etc/rc.conf

# sysrc alsa_seq_server_enable=YES
alsa_seq_server_enable: YES -> YES

Now all of the above DAW software (or other music programs) should be working properly.

EOF

13 thoughts on “FreeBSD Home Audio Studio

  1. Pingback: FreeBSD Home Audio Studio – Eazy News

  2. Pingback: FreeBSD Home Audio Studio – Enrichment Daily

  3. Pingback: FreeBSD Home Audio Studio – theuknewsroom.com

  4. Pingback: Links 02/03/2023: diffoscope 237 and New LibreOffice Release | Techrights

    1. vermaden Post author

      You can list your sound cards with cat /dev/sndstat command.

      % cat /dev/sndstat                                                           
      Installed devices:
      pcm0:  (play/rec) default
      No devices installed from userspace.
      
      

      Then /dev/dsp0* will be created for pcm0 and /dev/dsp1* for pcm1 etc.

      Regards.

      Like

      Reply
  5. Pingback: FreeBSD Home Audio Studio - PROJIN NEWS

  6. Pingback: FreeBSD Home Audio Studio – Cyber Geeks Global

  7. Luc

    The graphical environment breaks when I add mac_priority to /etc/rc.conf.
    The sshd server stops working too.
    I had to undo that change to have FreeBSD work correctly again, and still no Jack.
    Can you please advise?

    Like

    Reply
    1. vermaden Post author

      To be honest I did not had such problems – for example with sshd and while running X11.

      % doas kldload mac_priority
      
      % doas service sshd restart               
      Performing sanity check on sshd configuration.
      Stopping sshd.
      Waiting for PIDS: 10126.
      Performing sanity check on sshd configuration.
      Starting sshd.
      
      % doas kldunload mac_priority
      
      % doas service sshd restart     
      Performing sanity check on sshd configuration.
      Stopping sshd.
      Waiting for PIDS: 93956.
      Performing sanity check on sshd configuration.
      Starting sshd.
      
      

      Liked by 1 person

      Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s