octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #49011] the example in doc-string of audioplay


From: anonymous
Subject: [Octave-bug-tracker] [bug #49011] the example in doc-string of audioplayer
Date: Tue, 6 Sep 2016 07:32:24 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

URL:
  <http://savannah.gnu.org/bugs/?49011>

                 Summary: the example in doc-string of audioplayer
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Tue 06 Sep 2016 07:32:21 AM UTC
                Category: Documentation
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.3
        Operating System: Any

    _______________________________________________________

Details:


>>  help audioplayer
     ......
     The following example will create an audioplayer object that will
     play back one second of white noise at 44100 sample rate using 8
     bits per sample.

          y = randn (2, 44100) - 0.5;
          player = audioplayer (y, 44100, 8);
          play (player);


This example works, but the white noise y has a DC offset -0.5.
Whether

y = randn (2, 44100) - 0.5;

should be

y = rand (2, 44100) - 0.5;

or

y = randn (2, 44100);

?




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49011>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]