ApplyOptions() public méthode

public ApplyOptions ( ) : void
Résultat void
Exemple #1
0
        public PureDataSequenceItem PlaySequence(string sequenceName, object source, float delay, params PureDataOption[] options)
        {
            PureDataSequenceItem item = GetSequenceItem(sequenceName, source);

            item.ApplyOptions(options);
            item.Play(delay);
            return(item);
        }
Exemple #2
0
    void SetRandomPattern()
    {
        int sendSize    = 2;
        int subdivision = (int)2.Pow(Random.Range(2, 5));

        float[,] pattern = new float[sendSize, subdivision];

        for (int row = 0; row < sendSize; row++)
        {
            for (int column = 0; column < subdivision; column++)
            {
                pattern[row, column] = Random.Range(0, 10) + Random.Range(10, 500) * row;
            }
        }

        if (sequence != null)
        {
            sequence.ApplyOptions(PureDataOption.TrackPattern(1, 2, pattern));
        }
    }