Displaying 4 results from an estimated 4 matches for "loadsampl".
Did you mean:
loadsample
2014 Feb 19
0
Extending a module to models causes ArgumentError A copy of xx has been removed from module tree
How can I extend a module to a model class and use an instance of a
custom class as a class instance variable for model such that when next
request comes, custom class could be found and older instances are
deleted?
I created a class Samples. I also created a module LoadSamples where
in a method say load_samples, I create a new Samples instance and
assign it to a class instance variable. I extend LoadSamples to
ActiveRecord::Base and called load_samples from model User.
class Samples
...
end
module LoadSamples
attr_accessor :samples
def load_samples
@samples...
2007 Jul 08
0
patch to enhance sound module for 96 kHz/24 bit sample sizes
...ter (number of bits per sample) of
the Sample object, 8 or 16.
+ For \code{bits}, the bits parameter (number of bits per sample) of
the Sample object, 8, 16, or 24.
For \code{setBits}, a Sample object with the new \code{bits} parameter.
}
Only in sound/man: bits.Rd~
diff -ru sound-orig/man/loadSample.Rd sound/man/loadSample.Rd
--- sound-orig/man/loadSample.Rd 2006-02-20 12:57:00.000000000 -0500
+++ sound/man/loadSample.Rd 2007-07-08 19:35:31.000000000 -0400
@@ -11,7 +11,8 @@
\item{filecheck}{ logical. If FALSE, no check for existance and read
permission of the file will be performed....
2008 Oct 10
1
formal argument "axes" matched by multiple actual arguments
Hi,
I'm using the add-on package "sound".I have the following
> q<-loadSample("a.wav")
> plot.Sample(q,axes=FALSE)
this gives me the error.
Error in plot.default(sound(s)[1, ], type = "l", col = "red", ylim = c(-1,
:
formal argument "axes" matched by multiple actual arguments
I'm guessing the package has some predefined ar...
2009 Jun 20
1
modifying sound package function plot.Sample
...c so that i can
choose whether i want the xaxis at the top or bottom but i cant seem to
change that.can somebody help me?
plot.Sample <- function(x,xlab=NULL,ylab=NULL,...){
sampletest <- is.Sample(x,argname="'x' ")
if (!sampletest$test) stop(sampletest$error)
s <- loadSample(x,filecheck=FALSE)
s <- normalize(s)
if (channels(s)==1) {
# if (is.null(ylab)) ylab <- "waveform"
plot(sound(s)[1,],type="l",col="black",xlab=xlab,ylab=ylab,axes=FALSE,...)
# axis(1)
# axis(2,at=c(-1,0,1),labels=as.character(c(-1,0,1)))
# abli...