Modifications

Sauter à la navigation Sauter à la recherche
Ligne 29 : Ligne 29 :     
== Arrière et premier plan (avancé) ==
 
== Arrière et premier plan (avancé) ==
 +
{{traduction}}
 
{{traduction}}
 
{{traduction}}
   −
Le problème dans le cas présent, c'est qu'il n'est pas possible d'arrêter la boucle The problem here is that you can't release the looping sound since its tied to ground. You could have one button held down all the time or try a latching loop but it's a lot easier if you just use a switch that has NC (normally closed) and NO (normally open) contacts - sometimes called a DPST (double pole single throw) switch
+
Le problème dans le cas présent, c'est qu'il n'est pas possible d'arrêter le son en boucle parce qu'il est branché sur la masse (il faut donc attendre qu'il se termine pour jouer le son d'avant plan).
   −
Most low cost switches and buttons do not have a normally-closed output, so make sure to check the specifications. This switch is a good example of one with both, and it even has nice markings!
+
Vous pouvez avoir un bouton maintenu enfoncé tout le temps ou essayer d'utiliser un "déclenchement on/off en boucle continue" mais cela sera infiniment plus simple si vous utilisez un switch (interrupteur) ayant un contact normalement fermé (dit "NC" pour ''normally close'') et un autre contact Normalement ouvert (dit "NO" pour ''normally open''). Ces interrupteurs/switch sont parfois appelés DPST (''double pole single throw'' pour deux direction - unipolaire)
 +
 
 +
La plupart des interrupteur bon marché ne disposent pas de contact normalement fermé, pensez donc a vérifier les spécifications. Le switch ci-dessous est un excellent exemple de contact offrant à la fois un contact normalement fermé (NC) et normalement ouvert (NO)... et celui-ci dispose en plus d'un chouette marquage!
    
{{ADFImage|ADAFRUIT-AUDIO-FX-declenchement-10.jpg}}
 
{{ADFImage|ADAFRUIT-AUDIO-FX-declenchement-10.jpg}}
   −
In this case, we connect the COM (common) pin to ground, then the normally-closed to pin #10 and the normally open to pin #0
+
Dans le cas présent, nous pouvons connecter le commun (COM) sir la broche de masse/GND, puis le contact normalement fermé (NC) sur la broche #10 et le contact normalement ouvert (NO) sur la broche  #0
    
With this setup, pin #10 is triggered normally, and when the lever is pressed, #10 is released and #0 is pressed. That way the #10 background loop stops immediately, and the #0 foreground sound starts immediately. When the lever is released, it goes back to having pin #10 connected
 
With this setup, pin #10 is triggered normally, and when the lever is pressed, #10 is released and #0 is pressed. That way the #10 background loop stops immediately, and the #0 foreground sound starts immediately. When the lever is released, it goes back to having pin #10 connected
29 879

modifications

Menu de navigation