Browse Source

Fix return values of deprecated random*() functions in rack0.hpp.

tags/v1.0.0
Andrew Belt 5 years ago
parent
commit
0517cc20aa
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      helper.py
  2. +2
    -2
      include/rack0.hpp

+ 1
- 1
helper.py View File

@@ -198,7 +198,7 @@ def create_module(slug, panel_filename=None, source_filename=None):
module_manifest['slug'] = slug
module_manifest['name'] = input_default("Module name", slug)
module_manifest['description'] = input_default("One-line description (optional)")
tags = input_default("Tags (comma-separated, case-insensitive, see https://github.com/VCVRack/Rack/blob/v1/src/plugin.cpp#L543 for list)")
tags = input_default("Tags (comma-separated, case-insensitive, see https://github.com/VCVRack/Rack/blob/v1/src/plugin.cpp#L511-L571 for list)")
tags = tags.split(",")
tags = [tag.strip() for tag in tags]
if len(tags) == 1 and tags[0] == "":


+ 2
- 2
include/rack0.hpp View File

@@ -51,8 +51,8 @@ DEPRECATED inline void cmultf(float *cr, float *ci, float ar, float ai, float br
// random
////////////////////

DEPRECATED inline float randomu32() {return random::u32();}
DEPRECATED inline float randomu64() {return random::u64();}
DEPRECATED inline uint32_t randomu32() {return random::u32();}
DEPRECATED inline uint64_t randomu64() {return random::u64();}
DEPRECATED inline float randomUniform() {return random::uniform();}
DEPRECATED inline float randomNormal() {return random::normal();}
DEPRECATED inline float randomf() {return random::uniform();}


Loading…
Cancel
Save