Hifiberry AMP2: Mono mit Equalizer

Max2Play Home Forums Max2Play on Raspberry PI Hifiberry AMP2: Mono mit Equalizer

Viewing 2 posts - 1 through 2 (of 2 total)
  • 24. Februar 2020 at 17:46 #48070

    Hallo zusammen
    Ich versuche auf meinem Raspi 3 B+ mit Hifiberry AMP2 einen Mono-Sound auszugeben. Der Sound soll über den Equalizer modifizierbar sein. Funktionieren tut der Equalizer und auch das „mergen“ der beiden Kanäle zu Mono.

    Was ich aber nicht gebacken bekomme ist, beides zu verketten. Also entweder erst den sound von stereo auf mono zu routen und dann weiter zum Equaliser zu schicken.

    Meine /etc/asound.conf sieht so aus:

    pcm.card0 {
      type hw
      card 0
    }
    
    ctl.card0 {
      type hw
      card 0
    }
    
    pcm.monocard {
      type route
      slave.pcm card0
      #slave.pcm routing
      slave.channels 2
      ttable {
        # Copy both input channels to output channel 0 (Left).
        0.0 0.5
        1.0 0.5
        # Send nothing to output channel 1 (Right).
        0.1 0
        1.1 0
      }
    }
    
    ctl.equal {
       type equal;
       module "Eq10";
    }
    
    pcm.plugequal {
       type equal;
       module "Eq10";
       slave {
         pcm "plughw:0,0";
       }
       hint {show on;description "Equalizer for plughw:0,0"}
    }

    Wenn ich im Audioplayer-Plugin unter Sequeelite>Erweitere Optionen die Soundkarte auf „monocard“ setze, kommt der sound auf der linken Boxe in Mono => passt
    Wenn ich im Audioplayer-Plugin unter Sequeelite>Erweitere Optionen die Soundkarte auf „plugequal“ setze, kommt der sound in Stereo über den Equalizer. Dieser ist auch über den Grafischen Equalizer veränderbar => passt.

    Aber Wie muss die asound.conf aussehen um beides zu verketten?

    Vielen Dank für die Hilfe! 🙂

    • This topic was modified 4 years, 1 month ago by baerengraben.
    11. März 2020 at 22:19 #48146

    Ich habe es nun selber herausgefunden. Folgende Page hat mir geholfen: https://thedigitalmachine.net/alsaequal.html

    Konkret: `
    slave.pcm — sound card to output to, will probably have to be a plug since alsaequal only supports floating point numbers, a „plug“ will convert the data type, outputting directly to hw won’t;`

    Wenn mal also equal weiterrouten möchte (slave), dann muss man in diesem Falle ein „Plug“ verwenden. Meine funktionierende /etc/asound.conf sieht nun so aus. Wobei „plugequal_mono“ die Mono-Ausgabe inkl. Equalizer und „plugequal_stereo“ die Stereo-Ausgabe inkl. Equalizer ist:

    pcm.card0 {
      type hw
      card 0
    }
    
    ctl.card0 {
      type hw
      card 0
    }
    
    pcm.monocard {
      type route
      slave.pcm card0
      #slave.pcm routing
      slave.channels 2
      ttable {
        # Copy both input channels to output channel 0 (Left).
        0.0 0.5
        1.0 0.5
        # Send nothing to output channel 1 (Right).
        0.1 0
        1.1 0
      }
    }
    
    ctl.equal {
       type equal;
       module "Eq10";
    }
    
    pcm.plugequal_mono {
       type equal;
       module "Eq10";
       slave {
         pcm pcm_plug;
       }
       hint {show on;description "Equalizer for plughw:0,0"}
    }
    
    pcm.plugequal_stereo {
       type equal;
       module "Eq10";
       slave {
         pcm "plughw:0,0";
       }
       hint {show on;description "Equalizer for plughw:0,0"}
    }
    
    pcm.pcm_plug {
        type plug;
        slave.pcm monocard;
    }

    Vieleicht hilft das ja mal jemandem weiter.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Register here